mirror of
https://github.com/irssi/irssi.git
synced 2024-11-03 04:27:19 -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:
parent
eb31bb1712
commit
fa94c72774
@ -112,7 +112,7 @@ static void ctcp_ping_reply(IRC_SERVER_REC *server, const char *data,
|
|||||||
|
|
||||||
g_return_if_fail(data != NULL);
|
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);
|
char *tmp = g_strconcat("PING ", data, NULL);
|
||||||
ctcp_default_reply(server, tmp, nick, addr, target);
|
ctcp_default_reply(server, tmp, nick, addr, target);
|
||||||
g_free(tmp);
|
g_free(tmp);
|
||||||
|
Loading…
Reference in New Issue
Block a user