Mercurial > xib
comparison irclib.py @ 68:7aa1f59800b0
Fixed IRC nick callback
Signed-off-by: Charly COSTE <changaco@changaco.net>
author | Charly COSTE <changaco@changaco.net> |
---|---|
date | Sun, 30 Aug 2009 20:09:06 +0200 |
parents | 2e3561313b0f |
children | 0a2b9e84bbde |
comparison
equal
deleted
inserted
replaced
67:2e3561313b0f | 68:7aa1f59800b0 |
---|---|
435 self.lock.acquire() | 435 self.lock.acquire() |
436 | 436 |
437 if self.connected == True: | 437 if self.connected == True: |
438 self.used_by += 1 | 438 self.used_by += 1 |
439 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) | 439 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) |
440 self.nick(self.real_nickname, callback=nick_callback) | 440 if nick_callback != None: |
441 self.add_nick_callback(nick_callback) | |
442 if self.really_connected == True: | |
443 self._call_nick_callbacks(None) | |
441 self.lock.release() | 444 self.lock.release() |
442 return self | 445 return self |
443 | 446 |
444 | 447 |
445 self.nick_callbacks = [] | 448 self.nick_callbacks = [] |