Skip to content
Snippets Groups Projects
Commit 66249daf authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

add a default Role in gc

parent d9cf8bb1
No related branches found
No related tags found
No related merge requests found
......@@ -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':
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment