From efdc519c0bafebf3588aa4a2443a73ccd5220f33 Mon Sep 17 00:00:00 2001 From: Thomas Steen Rasmussen Date: Tue, 20 Jul 2021 08:16:32 +0200 Subject: [PATCH] add skeleton on_mode() handler to ircbot --- src/ircbot/irc3module.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/ircbot/irc3module.py b/src/ircbot/irc3module.py index 04257c50..cdd1f277 100644 --- a/src/ircbot/irc3module.py +++ b/src/ircbot/irc3module.py @@ -109,6 +109,11 @@ class Plugin(object): def on_kick(self, **kwargs): logger.debug("inside on_kick(), kwargs: %s" % kwargs) + @irc3.event(irc3.rfc.MODE) + def on_mode(self, **kwargs): + """Triggered whenever a mode is changed on a channel.""" + logger.debug("inside on_mode(), kwargs: %s" % kwargs) + ############################################################################################### # custom irc3 methods below here