flood prevention
This commit is contained in:
parent
1810447e28
commit
0846f15417
2
irc.py
2
irc.py
|
@ -39,7 +39,7 @@ class crlf_tcp(asynchat.async_chat):
|
||||||
|
|
||||||
def queue_read_loop(self):
|
def queue_read_loop(self):
|
||||||
while True:
|
while True:
|
||||||
line = self.oqueue.get()
|
line = self.oqueue.get().splitlines()[0][:500]
|
||||||
print ">>> %r" % line
|
print ">>> %r" % line
|
||||||
self.push(line.encode('utf-8','replace')+'\r\n')
|
self.push(line.encode('utf-8','replace')+'\r\n')
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue