diff frontends/quick_frontend/quick_chat.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 f271fff3a713
children fc7583282d40
line wrap: on
line diff
--- a/frontends/quick_frontend/quick_chat.py	Wed Mar 31 17:16:27 2010 +1100
+++ b/frontends/quick_frontend/quick_chat.py	Wed Mar 31 19:56:43 2010 +1100
@@ -30,6 +30,7 @@
         self.target = target
         self.host = host
         self.type = type
+        self.nick = None
 
     def setType(self, type):
         """Set the type of the chat
@@ -37,6 +38,10 @@
         """
         self.type = type
 
+    def setUserNick(self, nick):
+        """Set the nick of the user, usefull for e.g. change the color of the user"""
+        self.nick = nick
+
     def historyPrint(self, size=20, keep_last=False, profile='@NONE@'):
         """Print the initial history"""
         debug (_("now we print history"))