Mercurial > xib
diff bot.py @ 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 | dd7e1b935894 |
children | 6289ac5a2db7 |
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)