1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-03 00:03:12 +02:00

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

This commit is contained in:
Sébastien Helleu
2021-10-16 09:42:25 +02:00
parent c577da0375
commit df9c32b0c3
2 changed files with 15 additions and 15 deletions
+4 -4
View File
@@ -2589,13 +2589,13 @@ TEST(IrcProtocolWithServer, 322)
{
SRV_INIT;
/* not enough arguments */
/* not enough parameters */
RECV(":server 322");
CHECK_ERROR_ARGS("322", 2, 5);
CHECK_ERROR_PARAMS("322", 0, 3);
RECV(":server 322 alice");
CHECK_ERROR_ARGS("322", 3, 5);
CHECK_ERROR_PARAMS("322", 1, 3);
RECV(":server 322 alice #test");
CHECK_ERROR_ARGS("322", 4, 5);
CHECK_ERROR_PARAMS("322", 2, 3);
RECV(":server 322 alice #test 3");
CHECK_SRV("-- #test(3)");