diff 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
line wrap: on
line diff
--- a/tools/memory.py	Wed Mar 31 17:16:27 2010 +1100
+++ b/tools/memory.py	Wed Mar 31 19:56:43 2010 +1100
@@ -489,7 +489,7 @@
         if not self.history[me_short].has_key(key):
             self.history[me_short][key]={}
 
-        self.history[me_short][key][int(time.time())] = (from_short, message)
+        self.history[me_short][key][int(time.time())] = (from_jid.full(), message)
         
     def getHistory(self, from_jid, to_jid, size):
         ret={}