We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent db05081 commit d593f84Copy full SHA for d593f84
src/drivers/Socket.py
@@ -212,7 +212,13 @@ def _read(self):
212
lines = self.inbuffer.split(b'\n')
213
self.inbuffer = lines.pop()
214
for line in lines:
215
- line = decode_raw_line(line)
+ if self.irc is not None \
216
+ and 'UTF8ONLY' in self.irc.state.supported:
217
+ # No need for the fancy charset-guessing used in
218
+ # decode_raw_line.
219
+ line = line.decode('utf8')
220
+ else:
221
+ line = decode_raw_line(line)
222
223
msg = drivers.parseMsg(line)
224
if msg is not None and self.irc is not None:
0 commit comments