Use the timestamp formatter instead of duplicating the code

This commit is contained in:
James Vega 2009-01-02 17:11:41 +00:00
parent 1f3d9e64a3
commit 0bc16641b9

View File

@ -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',