comparison frontends/quick_frontend/quick_app.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 ace2af8abc5a
children fc7583282d40
comparison
equal deleted inserted replaced
78:ace2af8abc5a 79:db0a0f000e37
211 """Called when a MUC room is joined""" 211 """Called when a MUC room is joined"""
212 if not self.__check_profile(profile): 212 if not self.__check_profile(profile):
213 return 213 return
214 debug (_("Room [%(room_name)s] joined by %(profile)s, users presents:%(users)s") % {'room_name':room_id+'@'+room_service, 'profile': profile, 'users':room_nicks}) 214 debug (_("Room [%(room_name)s] joined by %(profile)s, users presents:%(users)s") % {'room_name':room_id+'@'+room_service, 'profile': profile, 'users':room_nicks})
215 room_jid=room_id+'@'+room_service 215 room_jid=room_id+'@'+room_service
216 self.chat_wins[room_jid].setUserNick(user_nick)
216 self.chat_wins[room_jid].setType("group") 217 self.chat_wins[room_jid].setType("group")
217 self.chat_wins[room_jid].setPresents([user_nick]+room_nicks) 218 self.chat_wins[room_jid].setPresents([user_nick]+room_nicks)
218 219
219 220
220 def roomUserJoined(self, room_id, room_service, user_nick, user_data, profile): 221 def roomUserJoined(self, room_id, room_service, user_nick, user_data, profile):