edwardslabs / CloudBot

CloudBot - The simple, fast, expandable, open-source Python IRC Bot!
GNU General Public License v3.0
28 stars 31 forks source link

Add outgoing raw line hooks #178

Closed linuxdaemon closed 6 years ago

linuxdaemon commented 6 years ago

New Hook Type

Adds a new hook type hook.irc_out which allows a plugin to modify raw messages as they are sent out The result of a hook.irc_out function is used to replace the original message. Returning an empty string or None will result in the data not being sent and no further hooks will be launched.

New Plugin

Adds the core_out.py plugin which contains the core hook.irc_out hooks. The plugin does the following:

linuxdaemon commented 6 years ago

I'm adding another hook type, closing for now. Will reopen when it's ready to be merged.

linuxdaemon commented 6 years ago

Added hook.post_hook which is fired after a hook finished executing