Try to fix a crash in telepaatti (maybe related to our custom jabber MUC setup)

This commit is contained in:
build 2011-12-05 14:42:17 +01:00 committed by Petteri
parent eae8112f14
commit 866af36f6f
1 changed files with 2 additions and 1 deletions

View File

@ -1429,7 +1429,8 @@ class ClientThread(Thread):
nick, room))
elif inroom:
self.ircCommandPART(nick, room, 'left')
del (self.mucs[room][nick])
if nick in self.mucs[room].keys():
del (self.mucs[room][nick])
else:
line = "%s is doing something" % nick
self.printDebug(line.encode('utf-8'))