use new function in groupchat_window
This commit is contained in:
parent
22b72ada45
commit
bf51987c7c
|
@ -424,8 +424,9 @@ class GroupchatWindow(chat.Chat):
|
||||||
gc_contact.status)
|
gc_contact.status)
|
||||||
|
|
||||||
def get_role(self, room_jid, nick):
|
def get_role(self, room_jid, nick):
|
||||||
if gajim.gc_contacts[self.account][room_jid].has_key(nick):
|
gc_contact = gajim.contact.get_gc_contact(self.account, room_jid, nick)
|
||||||
return gajim.gc_contacts[self.account][room_jid][nick].role
|
if gc_contact:
|
||||||
|
return gc_contact.role
|
||||||
else:
|
else:
|
||||||
return 'visitor'
|
return 'visitor'
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue