add a default Role in gc

This commit is contained in:
Yann Leboulanger 2005-05-07 09:08:54 +00:00
parent d9cf8bb1a0
commit 66249dafb5
1 changed files with 2 additions and 0 deletions

View File

@ -225,6 +225,8 @@ class Groupchat_window(chat.Chat):
def chg_user_status(self, room_jid, nick, show, status, role, affiliation, \
jid, reason, actor, statusCode, account):
"""When a user change his status"""
if not role:
role = 'None'
model = self.list_treeview[room_jid].get_model()
if show == 'offline' or show == 'error':
if statusCode == '307':