aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar jesopo2019-11-19 17:23:23 +0000
committerGravatar jesopo2019-11-19 17:23:23 +0000
commit2f07c308eaebf22e6b713c3317bc9a6364e0d858 (patch)
tree1848ab3b905d2641583cb09afbee30de2846b870
parentseparate server name and context name with ":" in print_activity.py (diff)
signature
set private NOTICE context so print_activity shows who a notice was sent to
-rw-r--r--modules/format_activity.py11
1 files changed, 4 insertions, 7 deletions
diff --git a/modules/format_activity.py b/modules/format_activity.py
index 47f9bb7a..1d93eb94 100644
--- a/modules/format_activity.py
+++ b/modules/format_activity.py
@@ -64,12 +64,6 @@ class Module(ModuleManager.BaseModule):
event["channel"].name, parsed_line=event["line"], channel=channel,
user=event["user"], minimal=minimal, pretty=pretty)
- def _private_notice(self, event, user):
- minimal, normal, pretty = self._on_notice(event, user, None)
- self._event("notice.private", event["server"], normal, None,
- parsed_line=event["line"], user=event["user"], minimal=minimal,
- pretty=pretty)
-
@utils.hook("received.notice.channel")
@utils.hook("send.notice.channel")
def channel_notice(self, event):
@@ -78,7 +72,10 @@ class Module(ModuleManager.BaseModule):
@utils.hook("received.notice.private")
@utils.hook("send.notice.private")
def private_notice(self, event):
- self._private_notice(event, event["user"])
+ minimal, normal, pretty = self._on_notice(event, event["user"], None)
+ self._event("notice.private", event["server"], normal,
+ event["target"].nickname, parsed_line=event["line"],
+ user=event["user"], minimal=minimal, pretty=pretty)
def _on_join(self, event, user):
channel_name = event["channel"].name