aboutsummaryrefslogtreecommitdiff
path: root/src/core_modules/format_activity.py
diff options
context:
space:
mode:
authorGravatar jesopo2020-01-17 18:13:35 +0000
committerGravatar jesopo2020-01-17 18:13:35 +0000
commit631e66942688d64ceedc4ecf54593ed48f1c8313 (patch)
tree18f938d5c5e84e65137e72928ff7125d97228d9c /src/core_modules/format_activity.py
parentv1.18.0-rc3 release (diff)
signature
_on_topic doesn't always have a user
Diffstat (limited to 'src/core_modules/format_activity.py')
-rw-r--r--src/core_modules/format_activity.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core_modules/format_activity.py b/src/core_modules/format_activity.py
index 6f346356..0f932bb4 100644
--- a/src/core_modules/format_activity.py
+++ b/src/core_modules/format_activity.py
@@ -177,8 +177,8 @@ class Module(ModuleManager.BaseModule):
line = "- %s" % minimal
self._event("topic", event["server"], line, event["channel"].name,
- channel=event["channel"], user=event["user"], minimal=minimal,
- formatting=formatting)
+ channel=event["channel"], user=event.get("user", None),
+ minimal=minimal, formatting=formatting)
@utils.hook("received.topic")
def on_topic(self, event):
self._on_topic(event, event["user"].nickname, "changed",