irssi-import / bugs.irssi.org

bugs.irssi.org archive
https://github.com/irssi/irssi/issues
0 stars 0 forks source link

Implement a clean way to load scripts automatically #884

Open irssibot opened 11 years ago

irssibot commented 11 years ago

Implement a new option "/script load -auto scriptName" similar to... 1) "/server add -auto" 2) "/channel add -auto"

Adding this method "/script load -auto scriptName" allows the users to manage their scripts more efficiently for automation and to get rid of overall unnecessary burden of depending on symbolic links in different places such as...

1) Scripts located in "/usr/share/irssi/scripts/" "~/.irssi/scripts/"
2) Scripts located in "~/.irssi/scripts/" to "~/.irssi/scripts/autorun/"

This mean the "~/.irssi/scripts/autorun/" directory will be no longer needed and can be eliminated. The "~/.irssi/" directory will appear to be more organized and the users will continue to keep their scripts in "~/.irssi/scripts/" and use "/script load -auto scriptName" instead.

"/script load -auto scriptName" is expected to check for scripts located in /usr/share/irssi/scripts/ and $HOME/.irssi/scripts before reporting if it is either loaded or not found.