more accurate reply to PONG
This commit is contained in:
parent
224acb4461
commit
1bdc4ec719
|
@ -46,13 +46,11 @@ def evaluate(msg):
|
||||||
return result
|
return result
|
||||||
|
|
||||||
while True:
|
while True:
|
||||||
#text = irc.recv(2040)
|
|
||||||
#print(text)
|
|
||||||
text = recv()
|
text = recv()
|
||||||
|
|
||||||
m = ping_re.match(text)
|
m = ping_re.match(text)
|
||||||
if m:
|
if m:
|
||||||
send(b'PONG %s' % m.group(1))
|
send(b'PONG %s' % m.group(1).strip())
|
||||||
continue
|
continue
|
||||||
|
|
||||||
m = chan_msg_re.match(text)
|
m = chan_msg_re.match(text)
|
||||||
|
|
Loading…
Reference in New Issue