show milliseconds when displaying draft/delete event

This commit is contained in:
jesopo 2020-01-20 13:25:53 +00:00
parent c6d913e218
commit 7f434e5e17

View file

@ -12,7 +12,8 @@ class Module(ModuleManager.BaseModule):
if line:
line.deleted = True
timestamp = utils.datetime.datetime_human(line.timestamp)
timestamp = utils.datetime.datetime_human(line.timestamp,
timespec=utils.datetime.TimeSpec.MILLISECOND)
minimal = "{NICK} deleted line from %s (%s)" % (
timestamp, line.message)
line = "- %s" % minimal