use new function in groupchat_window

This commit is contained in:
Yann Leboulanger 2005-12-28 22:10:22 +00:00
parent 22b72ada45
commit bf51987c7c
1 changed files with 3 additions and 2 deletions

View File

@ -424,8 +424,9 @@ class GroupchatWindow(chat.Chat):
gc_contact.status)
def get_role(self, room_jid, nick):
if gajim.gc_contacts[self.account][room_jid].has_key(nick):
return gajim.gc_contacts[self.account][room_jid][nick].role
gc_contact = gajim.contact.get_gc_contact(self.account, room_jid, nick)
if gc_contact:
return gc_contact.role
else:
return 'visitor'