# HG changeset patch # User Charly COSTE # Date 1254657631 -7200 # Node ID 5390e9abfa44bf20ec30746027ac3a7c8cc88261 # Parent 35e0ddf3b13c6982aabf80b1d1433dac3f0338cf Don't try to remove a participant that does not exist Signed-off-by: Charly COSTE diff --git a/bot.py b/bot.py --- 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)