1
0
mirror of https://github.com/irssi/irssi.git synced 2024-12-04 14:46:39 -05:00

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
This commit is contained in:
Timo Sirainen 2002-02-15 16:24:53 +00:00 committed by cras
parent eb31bb1712
commit fa94c72774

View File

@ -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);