Mercurial > xib
diff bot.py @ 29:a694ffe6a973
Fixed nickname change.
Signed-off-by: Charly COSTE <changaco@changaco.net>
author | Charly COSTE <changaco@changaco.net> |
---|---|
date | Fri, 21 Aug 2009 01:27:41 +0200 |
parents | 9b7a628ca612 |
children | c0fb916cb0a0 |
line wrap: on
line diff
--- a/bot.py +++ b/bot.py @@ -440,6 +440,8 @@ class bot(Thread): def close_xmpp_connection(self, nickname): + if not self.xmpp_connections.has_key(nickname): + return self.xmpp_connections[nickname].used_by -= 1 if self.xmpp_connections[nickname].used_by < 1: self.error('===> Debug: closing XMPP connection for "'+nickname+'"', debug=True)