prevent another TB

This commit is contained in:
Yann Leboulanger 2005-06-30 21:33:12 +00:00
parent b8505eec7e
commit 2554613339
1 changed files with 4 additions and 1 deletions

View File

@ -244,7 +244,10 @@ class GroupchatWindow(chat.Chat):
return iter return iter
def get_role(self, room_jid, nick): 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): def update_state_images(self):
roster = self.plugin.roster roster = self.plugin.roster