1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-26 04:46:37 +02:00

irc: use parsed command parameters in "ping" command callback

This commit is contained in:
Sébastien Helleu
2021-10-14 22:42:07 +02:00
parent 7a88e007a5
commit 8ea41d91c9
2 changed files with 11 additions and 5 deletions
+2 -2
View File
@@ -1526,9 +1526,9 @@ TEST(IrcProtocolWithServer, ping)
{
SRV_INIT;
/* not enough arguments, no response */
/* not enough parameters, no response */
RECV("PING");
CHECK_ERROR_ARGS("ping", 1, 2);
CHECK_ERROR_PARAMS("ping", 0, 1);
CHECK_SENT(NULL);
RECV("PING :123456789");