aboutsummaryrefslogtreecommitdiff
path: root/modules/print_activity.py
diff options
context:
space:
mode:
authorGravatar jesopo2018-11-27 17:33:24 +0000
committerGravatar jesopo2018-11-27 17:33:24 +0000
commite47edbddfbcf485a6cd661f308f862c97f2e8650 (patch)
tree20b6112be956e11c7e3fefb14da803d8ddc85b55 /modules/print_activity.py
parentAdd type hint for return type of IRCBot.trigger (diff)
signature
Print when we receive and INVITE
Diffstat (limited to 'modules/print_activity.py')
-rw-r--r--modules/print_activity.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/print_activity.py b/modules/print_activity.py
index e24605d2..474a665e 100644
--- a/modules/print_activity.py
+++ b/modules/print_activity.py
@@ -124,3 +124,8 @@ class Module(ModuleManager.BaseModule):
def motd_end(self, event):
for line in event["server"].motd_lines:
self.print_line(event, "[MOTD] %s" % line)
+
+ @utils.hook("received.invite")
+ def invite(self, event):
+ self.print_line(event, "%s was invited to %s" % (
+ event["user"].nickname, target_channel))