From 866af36f6f7abe265327eb5958f9df1b04d417cd Mon Sep 17 00:00:00 2001 From: build Date: Mon, 5 Dec 2011 14:42:17 +0100 Subject: [PATCH] Try to fix a crash in telepaatti (maybe related to our custom jabber MUC setup) --- telepaatti.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/telepaatti.py b/telepaatti.py index 327f08f..037a12f 100755 --- a/telepaatti.py +++ b/telepaatti.py @@ -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'))