diff options
| author | 2018-11-13 14:59:47 +0000 | |
|---|---|---|
| committer | 2018-11-13 14:59:47 +0000 | |
| commit | 555e8faa03aab998acd73ed202277174d544348f (patch) | |
| tree | 4b85a203da93716a750aaca8f678ada23faee0ff /modules/print_activity.py | |
| parent | Add .keys()/.values()/.items to src/IRCChannels.py (diff) | |
| signature | ||
Print MOTD in modules/print_activity.py (after caching it in
modules/line_handler.py)
Diffstat (limited to 'modules/print_activity.py')
| -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 bfeeef01..57eff958 100644 --- a/modules/print_activity.py +++ b/modules/print_activity.py @@ -119,3 +119,8 @@ class Module(ModuleManager.BaseModule): def rename(self, event): self.print_line(event, "%s was renamed to %s" % ( event["old_name"], event["new_name"])) + + @utils.hook("received.numeric.376") + def motd_end(self, event): + for line in event["server"].motd_lines: + self.print_line(event, "[MOTD] %s" % line) |
