From 5013b81699d2fb0cd6c14a3d4808b470a3a41a65 Mon Sep 17 00:00:00 2001 From: jesopo Date: Tue, 2 Jul 2019 08:48:18 +0100 Subject: [PATCH] pass IRCUser objects through formatted.notice events --- modules/format_activity.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/format_activity.py b/modules/format_activity.py index e6d7044b..978eabef 100644 --- a/modules/format_activity.py +++ b/modules/format_activity.py @@ -47,12 +47,13 @@ class Module(ModuleManager.BaseModule): def _channel_notice(self, event, sender, channel): line = self._on_notice(event, sender) self._event("notice.channel", event["server"], line, - event["channel"].name, parsed_line=event["line"], channel=channel) + event["channel"].name, parsed_line=event["line"], channel=channel, + user=event["user"]) def _private_notice(self, event, sender, target): line = self._on_notice(event, sender) self._event("notice.private", event["server"], line, None, - parsed_line=event["line"]) + parsed_line=event["line"], user=event["user"]) @utils.hook("received.notice.channel") def channel_notice(self, event):