1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-04 08:43:13 +02:00

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

This commit is contained in:
Sébastien Helleu
2021-10-16 18:52:08 +02:00
parent 4b6038975c
commit 6a8ec55118
2 changed files with 28 additions and 25 deletions
+5 -5
View File
@@ -3824,15 +3824,15 @@ TEST(IrcProtocolWithServer, 728)
{
SRV_INIT_JOIN;
/* not enough arguments */
/* not enough parameters */
RECV(":server 728");
CHECK_ERROR_ARGS("728", 2, 6);
CHECK_ERROR_PARAMS("728", 0, 4);
RECV(":server 728 alice");
CHECK_ERROR_ARGS("728", 3, 6);
CHECK_ERROR_PARAMS("728", 1, 4);
RECV(":server 728 alice #test");
CHECK_ERROR_ARGS("728", 4, 6);
CHECK_ERROR_PARAMS("728", 2, 4);
RECV(":server 728 alice #test q");
CHECK_ERROR_ARGS("728", 5, 6);
CHECK_ERROR_PARAMS("728", 3, 4);
RECV(":server 728 alice #test q nick1!user1@host1");
CHECK_CHAN("-- [#test] nick1!user1@host1 quieted");