aboutsummaryrefslogtreecommitdiff
path: root/modules/line_handler/__init__.py
diff options
context:
space:
mode:
authorGravatar jesopo2019-05-15 17:12:21 +0100
committerGravatar jesopo2019-05-15 17:12:21 +0100
commit7547eee96d611e224da02e1e4d79713b4d076e32 (patch)
tree3fbc8112eb19d19b27e1092db689b8eb101c01d7 /modules/line_handler/__init__.py
parentDon't show ducks when the bot is silenced (diff)
signature
Catch server version string, from RPL_MYINFO
Diffstat (limited to 'modules/line_handler/__init__.py')
-rw-r--r--modules/line_handler/__init__.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/line_handler/__init__.py b/modules/line_handler/__init__.py
index 42a830f7..12cf8e76 100644
--- a/modules/line_handler/__init__.py
+++ b/modules/line_handler/__init__.py
@@ -67,6 +67,11 @@ class Module(ModuleManager.BaseModule):
def handle_005(self, event):
core.handle_005(self.events, event)
+ # RPL_MYINFO
+ @utils.hook("raw.received.004")
+ def handle_004(self, event):
+ core.handle_004(event)
+
# whois respose (nickname, username, realname, hostname)
@utils.hook("raw.received.311", default_event=True)
def handle_311(self, event):