From 32813b4b4e328cbe661c91bf17dc72422afff373 Mon Sep 17 00:00:00 2001 From: jesopo Date: Thu, 20 Jun 2019 17:08:33 +0100 Subject: [PATCH] Change formatted.notice format to have `context` --- 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 0d5dcaa7..ca84c2c5 100644 --- a/modules/format_activity.py +++ b/modules/format_activity.py @@ -44,10 +44,11 @@ class Module(ModuleManager.BaseModule): event["channel"].name, channel=event["channel"], user=user) def _on_notice(self, event, sender, target): - return "(notice->%s) <%s> %s" % (target, sender, event["message"]) + return "(notice) <%s> %s" % (target, sender, event["message"]) def _channel_notice(self, event, sender, channel): line = self._on_notice(event, sender, channel.name) - self._event("notice.channel", event["server"], line, None) + self._event("notice.channel", event["server"], line, + event["channel"].name) def _private_notice(self, event, sender, target): line = self._on_notice(event, sender, target) self._event("notice.private", event["server"], line, None)