mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-25 19:44:13 +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
|
counter = 0
|
||||||
for (added_by, added_at) in factoids:
|
for (added_by, added_at) in factoids:
|
||||||
counter += 1
|
counter += 1
|
||||||
added_at = time.strftime(conf.supybot.reply.format.time(),
|
L.append(format('#%i was added by %s at %t',
|
||||||
time.localtime(int(added_at)))
|
|
||||||
L.append(format('#%i was added by %s at %s',
|
|
||||||
counter, added_by, added_at))
|
counter, added_by, added_at))
|
||||||
factoids = '; '.join(L)
|
factoids = '; '.join(L)
|
||||||
s = format('Key %q is %s and has %n associated with it: %s',
|
s = format('Key %q is %s and has %n associated with it: %s',
|
||||||
|
Loading…
Reference in New Issue
Block a user