aboutsummaryrefslogtreecommitdiff
path: root/modules/format_activity.py
diff options
context:
space:
mode:
authorGravatar jesopo2019-11-14 14:32:36 +0000
committerGravatar jesopo2019-11-14 14:32:36 +0000
commitf1889696667e7ca798243624a36d575ff41fd1e6 (patch)
tree156513529ec29672e67ca028ef46344fc1817b89 /modules/format_activity.py
parentset info log rolling backup count to 1 (0 means "keep all backups") (diff)
signature
add minimal/normal for "topic set at" lines
Diffstat (limited to 'modules/format_activity.py')
-rw-r--r--modules/format_activity.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/modules/format_activity.py b/modules/format_activity.py
index 844690cf..4701561d 100644
--- a/modules/format_activity.py
+++ b/modules/format_activity.py
@@ -220,9 +220,12 @@ class Module(ModuleManager.BaseModule):
unix_dt = datetime.datetime.utcfromtimestamp(event["set_at"])
dt = datetime.datetime.strftime(unix_dt, utils.ISO8601_PARSE)
- line = "topic set at %s" % dt
- self._event("topic-timestamp", event["server"], line,
- event["channel"].name, channel=event["channel"])
+
+ minimal = "topic set at %s" % dt
+ normal = "- %s" % minimal
+
+ self._event("topic-timestamp", event["server"], normal,
+ event["channel"].name, channel=event["channel"], minimal=minimal)
def _on_kick(self, event, kicked_nickname):
sender_nickname = event["user"].nickname