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

don't crash if we open a pm after he left the room

parent c7b36b78
No related branches found
No related tags found
No related merge requests found
......@@ -1283,7 +1283,10 @@ def handle_event(self, account, jid, typ):
w = wins['chats'][jid]
else:
room_jid, nick = jid.split('/', 1)
show = gajim.gc_contacts[account][room_jid][nick].show
if gajim.gc_contacts[account][room_jid].has_key(nick):
show = gajim.gc_contacts[account][room_jid][nick].show
else:
show = 'offline':
c = Contact(jid = jid, name = nick, groups = ['none'],
show = show, ask = 'none')
self.roster.new_chat(c, account)
......
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