Fix tell and seen

master
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)
def pushupdate(sender, nick):
ts = int(time.gmtime())
ts = int(time.mktime(time.gmtime()))
nick = nick.lower()
update_l.acquire()
updates.append((sender, ts, nick))

View File

@ -46,7 +46,7 @@ def tell(phenny, input):
elif target[-1] == ":":
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))
# 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