mirror of
https://github.com/lalbornoz/roar.git
synced 2024-11-26 16:56:37 +00:00
IrcClient.py:connect(): create file from socket w/ errors="replace" to prevent UnicodeDecodeErrors.
This commit is contained in:
parent
0724c80868
commit
7192b66805
@ -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