From 27e6f3a50f9da0807c945356fec6fabb1b18f513 Mon Sep 17 00:00:00 2001 From: nohar Date: Sat, 27 Jan 2007 15:07:24 +0000 Subject: [PATCH] Be less demanding on the PONG reply to work with 2ch network. --- src/irc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/irc.c b/src/irc.c index 2acc377..1fad1ce 100644 --- a/src/irc.c +++ b/src/irc.c @@ -355,7 +355,9 @@ int irc_dispatch_server(struct link_server *server, struct line *line) free(resps); ret = OK_FORGET; } else if (strcmp(line->elemv[0], "PONG") == 0) { - if (line->elemc == 3 && strcmp(line->elemv[2], S_PING) == 0) { + /* not all server reply with PONG + * so we blindly assume the PONG is ours. */ + if (line->elemc == 3) { if (server->laginit_ts != -1) { irc_compute_lag(server); irc_lag_init(server);