Fix tell and seen

This commit is contained in:
sfan5 2014-06-28 16:30:13 +02:00
parent 477ba53213
commit 567a0872d2
2 changed files with 2 additions and 2 deletions

View File

@ -46,7 +46,7 @@ def updatethread():
time.sleep(5) time.sleep(5)
def pushupdate(sender, nick): def pushupdate(sender, nick):
ts = int(time.gmtime()) ts = int(time.mktime(time.gmtime()))
nick = nick.lower() nick = nick.lower()
update_l.acquire() update_l.acquire()
updates.append((sender, ts, nick)) updates.append((sender, ts, nick))

View File

@ -46,7 +46,7 @@ def tell(phenny, input):
elif target[-1] == ":": elif target[-1] == ":":
return phenny.reply("Do not put an : at the end of nickname") return phenny.reply("Do not put an : at the end of nickname")
d = (teller, target, text, int(time.gmtime())) d = (teller, target, text, int(time.mktime(time.gmtime())))
tell_pending.append(("add", d)) tell_pending.append(("add", d))
# We do not insert the entry into tell_list yet because we don't know the id it will have # We do not insert the entry into tell_list yet because we don't know the id it will have
tell_diskwr() # Write the change to disk tell_diskwr() # Write the change to disk