From 84a655527b03849a1d0709447b48481377dccac3 Mon Sep 17 00:00:00 2001 From: Juhani Haverinen Date: Tue, 1 Apr 2014 22:43:36 +0300 Subject: [PATCH] Changed hard-limit to IRC standard --- ircbot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ircbot.py b/ircbot.py index aa30803..cd127ff 100755 --- a/ircbot.py +++ b/ircbot.py @@ -38,7 +38,7 @@ class Connhandler(threading.Thread): self.inpc=inpc self.logc=logc def send(self,s): - if len(s)>1024: s=s[:1024] + if len(s)>512: s=s[:512] self.sock.send(s+'\r\n') if s.split(' ')[0]!='PONG': self.logc.send(s+'\n')