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:
Strips any \r or \n characters from a message (Can be disabled in the config)
Truncates the message to a configured length
Encodes the message using configurable settings
Prepends a fixed string to a message that starts with common bot command characters (configurable, can be disabled by setting to an empty list). This is to prevent any command that returns user input from accidentally triggering other bots.
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 ahook.irc_out
function is used to replace the original message. Returning an empty string orNone
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 corehook.irc_out
hooks. The plugin does the following:\r
or\n
characters from a message (Can be disabled in the config)