524 'replace') |
524 'replace') |
525 if self.__buffer.endswith("\r\n"): |
525 if self.__buffer.endswith("\r\n"): |
526 for line in self.__buffer.splitlines(): |
526 for line in self.__buffer.splitlines(): |
527 line = line.strip() |
527 line = line.strip() |
528 if line: |
528 if line: |
529 logging.debug("<IRC> " + line) |
529 logging.debug("<IRC> %s", line) |
530 handled = False |
530 handled = False |
531 # step 1: give channels a chance to handle the message |
531 # step 1: give channels a chance to handle the message |
532 for channel in self.__channelList: |
532 for channel in self.__channelList: |
533 handled = channel.handleMessage(line) |
533 handled = channel.handleMessage(line) |
534 if handled: |
534 if handled: |