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

prevent another TB

parent b8505eec
No related branches found
No related tags found
No related merge requests found
......@@ -244,7 +244,10 @@ class GroupchatWindow(chat.Chat):
return iter
def get_role(self, room_jid, nick):
return self.contacts[room_jid][nick].role
if self.contacts[room_jid].has_key(nick):
return self.contacts[room_jid][nick].role
else:
return 'visitor'
def update_state_images(self):
roster = self.plugin.roster
......
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