flood prevention

This commit is contained in:
Ryan Hitchman 2009-03-17 20:35:19 -06:00
parent 1810447e28
commit 0846f15417
1 changed files with 1 additions and 1 deletions

2
irc.py
View File

@ -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')