added 2.6 compatibility for tell.py

master
fbr 14 years ago
parent 327ec1c7e8
commit fd960e25e8
  1. 3
      tell.py

@ -40,6 +40,7 @@ def tell(msg, args):
def tellCB(nick, msg, status):
global store
print "{} {} {}".format(nick, msg, status)
if(status != brathuhn.STATUS_JOIN):
return
@ -49,7 +50,7 @@ def tellCB(nick, msg, status):
rem = []
for l in store:
if(l[0] == unicode(user)):
timestamp = "{:02}:{:02}, {}-{:02}-{:02}".format(l[3].hour, l[3].minute, l[3].year, l[3].month, l[3].day)
timestamp = "{0:02}:{1:02}, {2}-{3:02}-{4:02}".format(l[3].hour, l[3].minute, l[3].year, l[3].month, l[3].day)
brathuhn.sendMsg(brathuhn.ROOM,(l[0]+": User "+l[2]+" told me at "+timestamp+" to tell you: \""+l[1]+"\""),'groupchat')
rem.append(l)

Loading…
Cancel
Save