accidentally broke things with that merge; need to use bytes here

master
mutantmonkey 2011-12-21 01:31:46 -05:00
parent 397786ea71
commit 69490dc2f1
1 changed files with 1 additions and 1 deletions

2
irc.py
View File

@ -55,7 +55,7 @@ class Bot(asynchat.async_chat):
try:
if text is not None:
# 510 because CR and LF count too, as nyuszika7h points out
self.push((' '.join(args) + ' :' + text)[:510] + '\r\n')
self.push((b' '.join(args) + b' :' + text)[:510] + b'\r\n')
else:
self.push(b' '.join(args)[:512] + b'\r\n')
except IndexError: