comparison tools/memory.py @ 79:db0a0f000e37

Chat presentation enhancement - core: message signal is not sent anymore for groupchat type, cause MUC chat server do it for us - wix: user nick can now be specified to chat windows, usefull for colorization - memory: full jid are now sent - wix: message from user are now in black for group chat
author Goffi <goffi@goffi.org>
date Wed, 31 Mar 2010 19:56:43 +1100
parents 86f1f7f6d332
children d2630fba8dfd
comparison
equal deleted inserted replaced
78:ace2af8abc5a 79:db0a0f000e37
487 if not self.history.has_key(me_short): 487 if not self.history.has_key(me_short):
488 self.history[me_short]={} 488 self.history[me_short]={}
489 if not self.history[me_short].has_key(key): 489 if not self.history[me_short].has_key(key):
490 self.history[me_short][key]={} 490 self.history[me_short][key]={}
491 491
492 self.history[me_short][key][int(time.time())] = (from_short, message) 492 self.history[me_short][key][int(time.time())] = (from_jid.full(), message)
493 493
494 def getHistory(self, from_jid, to_jid, size): 494 def getHistory(self, from_jid, to_jid, size):
495 ret={} 495 ret={}
496 if not self.history.has_key(from_jid): 496 if not self.history.has_key(from_jid):
497 error(_("source JID not found !")) 497 error(_("source JID not found !"))