diff options
author | Timo Sirainen <cras@irssi.org> | 2002-02-15 16:24:53 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2002-02-15 16:24:53 +0000 |
commit | fa94c727742dc703fae2719c11db8a5a02fa2c1d (patch) | |
tree | bcf9475d082cae6939d2b88e5350e1a585e80a1c /src/fe-common | |
parent | eb31bb17129be11aeab2e592c42d4725b81bbdf2 (diff) | |
download | irssi-fa94c727742dc703fae2719c11db8a5a02fa2c1d.zip |
Allow still showing ping time even if client replied with only one ping
parameter.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2455 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-common')
-rw-r--r-- | src/fe-common/irc/fe-ctcp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fe-common/irc/fe-ctcp.c b/src/fe-common/irc/fe-ctcp.c index 064097de..fed3f4d1 100644 --- a/src/fe-common/irc/fe-ctcp.c +++ b/src/fe-common/irc/fe-ctcp.c @@ -112,7 +112,7 @@ static void ctcp_ping_reply(IRC_SERVER_REC *server, const char *data, g_return_if_fail(data != NULL); - if (sscanf(data, "%ld %ld", &tv2.tv_sec, &tv2.tv_usec) != 2) { + if (sscanf(data, "%ld %ld", &tv2.tv_sec, &tv2.tv_usec) < 1) { char *tmp = g_strconcat("PING ", data, NULL); ctcp_default_reply(server, tmp, nick, addr, target); g_free(tmp); |