Fix possible flood exploit

This commit is contained in:
Juhani Haverinen 2014-04-01 22:39:49 +03:00
parent 686d72e1a2
commit b0aed85904
1 changed files with 1 additions and 0 deletions

View File

@ -38,6 +38,7 @@ class Connhandler(threading.Thread):
self.inpc=inpc
self.logc=logc
def send(self,s):
if len(s)>1024: s=s[:1024]
self.sock.send(s+'\r\n')
if s.split(' ')[0]!='PONG':
self.logc.send(s+'\n')