add minimal/normal for "topic set at" lines
This commit is contained in:
parent
c9cb8c8805
commit
f188969666
1 changed files with 6 additions and 3 deletions
|
@ -220,9 +220,12 @@ class Module(ModuleManager.BaseModule):
|
||||||
|
|
||||||
unix_dt = datetime.datetime.utcfromtimestamp(event["set_at"])
|
unix_dt = datetime.datetime.utcfromtimestamp(event["set_at"])
|
||||||
dt = datetime.datetime.strftime(unix_dt, utils.ISO8601_PARSE)
|
dt = datetime.datetime.strftime(unix_dt, utils.ISO8601_PARSE)
|
||||||
line = "topic set at %s" % dt
|
|
||||||
self._event("topic-timestamp", event["server"], line,
|
minimal = "topic set at %s" % dt
|
||||||
event["channel"].name, channel=event["channel"])
|
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):
|
def _on_kick(self, event, kicked_nickname):
|
||||||
sender_nickname = event["user"].nickname
|
sender_nickname = event["user"].nickname
|
||||||
|
|
Loading…
Reference in a new issue