Tell format change

master
Stefan Krulj 14 years ago
parent 58a303f3c2
commit 88be4a1053
  1. 4
      tell.py

@ -41,15 +41,15 @@ def tell(msg, args):
def tellCB(nick, msg, status):
global store
print "here"
if(status != brathuhn.STATUS_JOIN):
return
user = nick.getResource()
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