Changed hard-limit to IRC standard

This commit is contained in:
Juhani Haverinen 2014-04-01 22:43:36 +03:00
parent b0aed85904
commit 84a655527b
1 changed files with 1 additions and 1 deletions

View File

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