'354': self._got354, #WHO
'396': self._gotHiddenHost, # hidden host has been set
'433': self._got433, #nick in use
+ '437': self._got433, #nick protected
'JOIN': self._gotjoin,
'PART': self._gotpart,
'KICK': self._gotkick,
self.parent.log('X', line)
def _write(self, line):
- self.socket.sendall(line.encode('utf-8', 'backslashreplace')+b"\r\n")
+ self.socket.sendall(line.encode('utf-8', 'surrogateescape')+b"\r\n")
def _getsockerr(self):
try: # SO_ERROR might not exist on all platforms