|
|
|
|
@ -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) |
|
|
|
|
|
|
|
|
|
|