mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-11 04:32:36 +01:00
Use the timestamp formatter instead of duplicating the code
This commit is contained in:
parent
1f3d9e64a3
commit
0bc16641b9
@ -328,9 +328,7 @@ class Factoids(callbacks.Plugin, plugins.ChannelDBHandler):
|
||||
counter = 0
|
||||
for (added_by, added_at) in factoids:
|
||||
counter += 1
|
||||
added_at = time.strftime(conf.supybot.reply.format.time(),
|
||||
time.localtime(int(added_at)))
|
||||
L.append(format('#%i was added by %s at %s',
|
||||
L.append(format('#%i was added by %s at %t',
|
||||
counter, added_by, added_at))
|
||||
factoids = '; '.join(L)
|
||||
s = format('Key %q is %s and has %n associated with it: %s',
|
||||
|
Loading…
Reference in New Issue
Block a user