Fix handling of longer messages

master
luk3yx 2018-10-20 13:18:29 +13:00
parent e3f719461c
commit abc31e680b
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ class IRC:
self.sendq = None
for i in sendq:
self.quote(*i)
msg = '{}\r\n'.format(' '.join(msg)).encode('utf-8')[:512]
msg = '{}'.format(' '.join(msg)).encode('utf-8')[:510] + b'\r\n'
self.sock.send(msg)
else:
self.debug('>Q>', *msg)