From 69490dc2f118f6c760082e45cfd2a45a1f44ffc4 Mon Sep 17 00:00:00 2001 From: mutantmonkey Date: Wed, 21 Dec 2011 01:31:46 -0500 Subject: [PATCH] accidentally broke things with that merge; need to use bytes here --- irc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/irc.py b/irc.py index 23335fe..048fa87 100755 --- a/irc.py +++ b/irc.py @@ -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: