소스 검색

Fix PING response

master
Thomas Mannay GitHub 7 년 전
부모
커밋
65417b187a
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. +3
    -3
      seddy.py

+ 3
- 3
seddy.py 파일 보기

@@ -92,6 +92,9 @@ if __name__ == "__main__":
for line in receive:
msg = parse_msg.search(line)
if msg is None:
if 'PING' in line:
send.write('PONG\r\n')
send.flush()
continue
else:
msg = msg.group(1)
@@ -101,9 +104,6 @@ if __name__ == "__main__":
if 'PRIVMSG' in line and not is_sed.match(msg):
history.enqueue(msg)

if 'PING' in line:
send.write('PONG\r\n')
send.flush()
if '.bots' in msg[:5] or '.bot ' + nick in msg[:5 + len(nick)]:
notice("I was written to correct your mistakes.")
if '.source ' + nick in msg[:8 + len(nick)]:


불러오는 중...
취소
저장