mirror of
https://github.com/lalbornoz/roar.git
synced 2024-12-23 04:46:37 +00:00
IrcClient.py:connect(): create file from socket w/ errors="replace" to prevent UnicodeDecodeErrors.
This commit is contained in:
parent
b385909b45
commit
f77e6d5bf8
@ -52,7 +52,7 @@ class IrcClient:
|
||||
self.close(); return False;
|
||||
else:
|
||||
select.select([], [self.clientSocket.fileno()], [])
|
||||
self.clientSocketFile = self.clientSocket.makefile(encoding="utf-8")
|
||||
self.clientSocketFile = self.clientSocket.makefile(encoding="utf-8", errors="replace")
|
||||
self.clientQueue = []
|
||||
self.queue("NICK", self.clientNick)
|
||||
self.queue("USER", self.clientIdent, "0", "0", self.clientGecos)
|
||||
|
Loading…
Reference in New Issue
Block a user