IRC encoding fix

This commit is contained in:
Neil Booth 2016-12-03 20:19:58 +09:00
parent 04369dd228
commit 556574640f

View File

@ -70,6 +70,11 @@ class IRC(LoggedClass):
async def join(self):
import irc.client as irc_client
from jaraco.stream import buffer
# see https://pypi.python.org/pypi/irc under DecodingInput
irc_client.ServerConnection.buffer_class = \
buffer.LenientDecodingLineBuffer
reactor = irc_client.Reactor()
for event in ['welcome', 'join', 'quit', 'kick', 'whoreply',