comparison irclib.py @ 253:e64b574afa8f

(irclib) moved initialization stuff from .connect to .__init__ Signed-off-by: Charly COSTE <changaco@changaco.net>
author Charly COSTE <changaco@changaco.net>
date Tue, 09 Mar 2010 12:37:08 +0100
parents 8acbfda313b9
children 9a2302e8382b
comparison
equal deleted inserted replaced
252:93990ebdbbaf 253:e64b574afa8f
463 self.nickname = nickname 463 self.nickname = nickname
464 self.nick_callbacks = [] 464 self.nick_callbacks = []
465 self.join_callbacks = {} 465 self.join_callbacks = {}
466 self.lock = threading.RLock() 466 self.lock = threading.RLock()
467 self.left_channels = [] 467 self.left_channels = []
468 self.channels = []
469 self.channels_keys = {}
470 self.irc_id = None
471 self.previous_buffer = ""
472 self.handlers = {}
473 self.real_server_name = ""
474 self.new_nickname = None
468 475
469 476
470 def __str__(self): 477 def __str__(self):
471 return self.real_nickname+' at '+self._server_str() 478 return self.real_nickname+' at '+self._server_str()
472 479
533 540
534 if self.socket != 'closed': 541 if self.socket != 'closed':
535 self.used_by = 1 542 self.used_by = 1
536 if charsets or not self.irclibobj.charsets.has_key(self._server_str()): 543 if charsets or not self.irclibobj.charsets.has_key(self._server_str()):
537 self.irclibobj.charsets[self._server_str()] = charsets 544 self.irclibobj.charsets[self._server_str()] = charsets
538 self.channels = []
539 self.channels_keys = {}
540 self.irc_id = None
541 self.previous_buffer = ""
542 self.handlers = {}
543 self.real_server_name = ""
544 self.real_nickname = self.nickname 545 self.real_nickname = self.nickname
545 self.new_nickname = None
546 self.username = username or self.nickname 546 self.username = username or self.nickname
547 self.ircname = ircname or self.nickname 547 self.ircname = ircname or self.nickname
548 self.password = password 548 self.password = password
549 self.localaddress = localaddress 549 self.localaddress = localaddress
550 self.localport = localport 550 self.localport = localport