diff options
| author | 2018-11-27 17:33:24 +0000 | |
|---|---|---|
| committer | 2018-11-27 17:33:24 +0000 | |
| commit | e47edbddfbcf485a6cd661f308f862c97f2e8650 (patch) | |
| tree | 20b6112be956e11c7e3fefb14da803d8ddc85b55 | |
| parent | Add type hint for return type of IRCBot.trigger (diff) | |
| signature | ||
Print when we receive and INVITE
| -rw-r--r-- | modules/print_activity.py | 5 |
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)) |
