handshake_ttl=None, transmit_ttl=None, receive_ttl=None,
anti_flood_delay=None, **kwargs):
super(IRCProtocol, self).__init__(state='unseen', **kwargs)
+ self.errors = []
self._password = password
self._nick_template = nick_template
if nick_needs_number is None:
self._handle_part(channel=target)
elif command == 'featurelist':
self._handle_features(arguments=arguments)
+ elif command == 'error':
+ self._handle_error(message=target)
elif command == 'disconnect':
self._handle_disconnect()
elif command == 'kick':
LOG.error('{}: ill-formed CHANLIMIT property'.format(
self))
+ def _handle_error(self, message):
+ "Server sent us an error message."
+ LOG.info('{}: server error: {}'.format(self, message))
+ self.errors.append(message)
+
def _handle_disconnect(self):
"Server disconnected us for flooding or some other reason."
LOG.info('{}: server disconnected'.format(self))