Changed hard-limit to IRC standard
This commit is contained in:
parent
b0aed85904
commit
84a655527b
|
@ -38,7 +38,7 @@ class Connhandler(threading.Thread):
|
||||||
self.inpc=inpc
|
self.inpc=inpc
|
||||||
self.logc=logc
|
self.logc=logc
|
||||||
def send(self,s):
|
def send(self,s):
|
||||||
if len(s)>1024: s=s[:1024]
|
if len(s)>512: s=s[:512]
|
||||||
self.sock.send(s+'\r\n')
|
self.sock.send(s+'\r\n')
|
||||||
if s.split(' ')[0]!='PONG':
|
if s.split(' ')[0]!='PONG':
|
||||||
self.logc.send(s+'\n')
|
self.logc.send(s+'\n')
|
||||||
|
|
Loading…
Reference in New Issue