This allows plugins to specify the types of messages they handle. This
will be used specifically for the nickserv plugin, but could be useful
for other things too.
Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
Plugins now use Bots instead of server_configs, this is useful for
checking the currently joined channels and perhaps using the connection
when there isn't one available in the current method.
Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
* on_connect is called on all plugins on the first message received from
the IRC server
* joined_channels property gets all of the channels that this bot has
currently joined in IRC
Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
This sets up a set of ropes and pulleys that signal the `Bot.keepalive`
function to clean things up after a quit signal has been sent. This
allows plugins to define an `on_unload` function to save any important
datas on intentional exit.
Signed-off-by: Alek Ratzloff <alekratz@gmail.com>