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

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

This commit is contained in:
Sébastien Helleu
2021-10-16 13:04:22 +02:00
parent 99d565f6df
commit 2ae974f5c3
2 changed files with 22 additions and 22 deletions
+4 -4
View File
@@ -2973,13 +2973,13 @@ TEST(IrcProtocolWithServer, 346)
{
SRV_INIT_JOIN;
/* not enough arguments */
/* not enough parameters */
RECV(":server 346");
CHECK_ERROR_ARGS("346", 2, 5);
CHECK_ERROR_PARAMS("346", 0, 3);
RECV(":server 346 alice");
CHECK_ERROR_ARGS("346", 3, 5);
CHECK_ERROR_PARAMS("346", 1, 3);
RECV(":server 346 alice #test");
CHECK_ERROR_ARGS("346", 4, 5);
CHECK_ERROR_PARAMS("346", 2, 3);
RECV(":server 346 alice #test invitemask");
CHECK_CHAN("-- [#test] [1] invitemask invited");