irc: return all arguments in the PONG response to a PING (closes #1369)

This commit is contained in:
Sébastien Helleu 2019-07-04 18:47:57 +02:00
parent 789fa972f8
commit 15ce4b2be5
2 changed files with 2 additions and 1 deletions

View File

@ -24,6 +24,7 @@ New features::
* core: add option "close" in command /window (issue #853)
* api: add argument "strip_items" in function string_split
* exec: evaluate option exec.command.shell, change default value to "${env:SHELL}" (issue #1356)
* irc: return all arguments in the PONG response to a PING (issue #1369)
Bug fixes::

View File

@ -2156,7 +2156,7 @@ IRC_PROTOCOL_CALLBACK(ping)
IRC_PROTOCOL_MIN_ARGS(2);
irc_server_sendf (server, 0, NULL, "PONG :%s",
(argv[1][0] == ':') ? argv[1] + 1 : argv[1]);
(argv_eol[1][0] == ':') ? argv_eol[1] + 1 : argv_eol[1]);
return WEECHAT_RC_OK;
}