add a default Role in gc
This commit is contained in:
parent
d9cf8bb1a0
commit
66249dafb5
|
@ -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':
|
||||
|
|
Loading…
Reference in New Issue