Mercurial > xib
comparison irclib.py @ 164:6b91ca42df98
change ServerConnection.really_connected to False in irclib.ServerConnection.disconnect()
Signed-off-by: Charly COSTE <changaco@changaco.net>
author | Charly COSTE <changaco@changaco.net> |
---|---|
date | Wed, 20 Jan 2010 10:38:06 +0100 |
parents | 54c0e77370fd |
children | 12d564cd0203 |
comparison
equal
deleted
inserted
replaced
163:54c0e77370fd | 164:6b91ca42df98 |
---|---|
465 if self.connected == True: | 465 if self.connected == True: |
466 self.used_by += 1 | 466 self.used_by += 1 |
467 self.irclibobj.bot.error('===> Debug: using existing IRC connection for '+self.__str__()+', this connection is now used by '+str(self.used_by)+' bridges', debug=True) | 467 self.irclibobj.bot.error('===> Debug: using existing IRC connection for '+self.__str__()+', this connection is now used by '+str(self.used_by)+' bridges', debug=True) |
468 if nick_callback != None: | 468 if nick_callback != None: |
469 self.add_nick_callback(nick_callback) | 469 self.add_nick_callback(nick_callback) |
470 if self.really_connected == True: | 470 if self.really_connected: |
471 self._call_nick_callbacks(None) | 471 self._call_nick_callbacks(None) |
472 self.lock.release() | 472 self.lock.release() |
473 return self | 473 return self |
474 | 474 |
475 if self.socket != 'closed': | 475 if self.socket != 'closed': |
752 | 752 |
753 self.lock.acquire() | 753 self.lock.acquire() |
754 | 754 |
755 if self.connected: | 755 if self.connected: |
756 self.connected = False | 756 self.connected = False |
757 if self.really_connected: | |
758 self.really_connected = False | |
757 | 759 |
758 if self.socket and self.socket != 'closed': | 760 if self.socket and self.socket != 'closed': |
759 self.quit(message) | 761 self.quit(message) |
760 | 762 |
761 try: | 763 try: |