Mercurial > xib
comparison 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 |
comparison
equal
deleted
inserted
replaced
28:6481b9bb95aa | 29:a694ffe6a973 |
---|---|
438 c.lock.release() | 438 c.lock.release() |
439 return c | 439 return c |
440 | 440 |
441 | 441 |
442 def close_xmpp_connection(self, nickname): | 442 def close_xmpp_connection(self, nickname): |
443 if not self.xmpp_connections.has_key(nickname): | |
444 return | |
443 self.xmpp_connections[nickname].used_by -= 1 | 445 self.xmpp_connections[nickname].used_by -= 1 |
444 if self.xmpp_connections[nickname].used_by < 1: | 446 if self.xmpp_connections[nickname].used_by < 1: |
445 self.error('===> Debug: closing XMPP connection for "'+nickname+'"', debug=True) | 447 self.error('===> Debug: closing XMPP connection for "'+nickname+'"', debug=True) |
446 del self.xmpp_connections[nickname] | 448 del self.xmpp_connections[nickname] |
447 else: | 449 else: |