This script replaces the broken Python script manager of HexChat.
Just drop it in the "addons" folder and move all other Python
scripts to another folder. Replace the basedir
variable in this
script with the absolute path to your folder and restart.
The script will create a file named auto.txt
to store a list
of scripts loaded at startup too.
For unloading/reloading to work properly, you need to add a list
named hooks
inside your scripts and append the return values
of the hook functions to it, like this:
hooks = []
(...)
hooks.append(xchat.hook_command("", myfunc))
- /pyld help
- /pyld list (displays a list of all loaded scripts)
- /pyld load NAME (imports a script from the basedir)
- /pyld unload NAME (unhooks the specified script)
- /pyld reload NAME (do both)
- /pyld auto NAME (add/remove the specified script to the autorun list)