changeset 99:5390e9abfa44

Don't try to remove a participant that does not exist Signed-off-by: Charly COSTE <changaco@changaco.net>
author Charly COSTE <changaco@changaco.net>
date Sun, 04 Oct 2009 14:00:31 +0200
parents 35e0ddf3b13c
children 6289ac5a2db7
files bot.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/bot.py
+++ b/bot.py
@@ -225,7 +225,8 @@ class bot(Thread):
 							
 						else:
 							# participant left
-							bridge.removeParticipant('xmpp', resource, presence.getStatus())
+							if p != None:
+								bridge.removeParticipant('xmpp', resource, presence.getStatus())
 					
 					elif resource != bridge.bot.nickname:
 						bridge.addParticipant('xmpp', resource)