Fix tell and seen
This commit is contained in:
parent
477ba53213
commit
567a0872d2
2
seen.py
2
seen.py
@ -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))
|
||||||
|
2
tell.py
2
tell.py
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user