comparison irclib.py @ 14:1a1f2a0d35c7

Fixed bug that prevented the bot from connecting to freenode and all other servers that don't send "umode" Signed-off-by: Charly COSTE <changaco@changaco.net>
author Charly COSTE <changaco@changaco.net>
date Mon, 17 Aug 2009 13:20:25 +0200
parents 4b2faa511f01
children 32a35f7eff70
comparison
equal deleted inserted replaced
13:a9077fa9cac9 14:1a1f2a0d35c7
373 """ 373 """
374 374
375 def __init__(self, irclibobj): 375 def __init__(self, irclibobj):
376 Connection.__init__(self, irclibobj) 376 Connection.__init__(self, irclibobj)
377 self.connected = 0 # Not connected yet. 377 self.connected = 0 # Not connected yet.
378 self.really_connected = False
378 self.socket = None 379 self.socket = None
379 self.ssl = None 380 self.ssl = None
380 381
381 def connect(self, server, port, nickname, password=None, username=None, 382 def connect(self, server, port, nickname, password=None, username=None,
382 ircname=None, localaddress="", localport=0, ssl=False, ipv6=False): 383 ircname=None, localaddress="", localport=0, ssl=False, ipv6=False):
409 Returns the ServerConnection object. 410 Returns the ServerConnection object.
410 """ 411 """
411 if self.connected: 412 if self.connected:
412 self.disconnect("Changing servers") 413 self.disconnect("Changing servers")
413 414
414 self.closing = False # added for xib 415 self.closing = False
415 self.previous_buffer = "" 416 self.previous_buffer = ""
416 self.handlers = {} 417 self.handlers = {}
417 self.real_server_name = "" 418 self.real_server_name = ""
418 self.real_nickname = nickname 419 self.real_nickname = nickname
419 self.server = server 420 self.server = server