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
This commit is contained in:
Goffi 2010-03-31 19:56:43 +11:00
commit 4b10dd725e

View file

@ -30,6 +30,7 @@ class QuickChat():
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 @@ class QuickChat():
"""
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"))