From 0846f154178d23e0d05d0f5804cb07ca1a11a960 Mon Sep 17 00:00:00 2001 From: Ryan Hitchman Date: Tue, 17 Mar 2009 20:35:19 -0600 Subject: [PATCH] flood prevention --- irc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/irc.py b/irc.py index 0a35bc0..56588f6 100644 --- a/irc.py +++ b/irc.py @@ -39,7 +39,7 @@ class crlf_tcp(asynchat.async_chat): def queue_read_loop(self): while True: - line = self.oqueue.get() + line = self.oqueue.get().splitlines()[0][:500] print ">>> %r" % line self.push(line.encode('utf-8','replace')+'\r\n')