diff --git a/tell.py b/tell.py index a61413a..a02dc5a 100644 --- a/tell.py +++ b/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)