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

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

This commit is contained in:
Sébastien Helleu
2021-10-16 11:47:09 +02:00
parent 0e9710de81
commit 741343e9aa
2 changed files with 16 additions and 18 deletions
+6 -4
View File
@@ -2892,16 +2892,18 @@ TEST(IrcProtocolWithServer, 341)
{
SRV_INIT;
/* not enough arguments */
/* not enough parameters */
RECV(":server 341");
CHECK_ERROR_ARGS("341", 2, 5);
CHECK_ERROR_PARAMS("341", 0, 3);
RECV(":server 341 alice");
CHECK_ERROR_ARGS("341", 3, 5);
CHECK_ERROR_PARAMS("341", 1, 3);
RECV(":server 341 alice bob");
CHECK_ERROR_ARGS("341", 4, 5);
CHECK_ERROR_PARAMS("341", 2, 3);
RECV(":server 341 alice bob #test");
CHECK_SRV("-- alice has invited bob to #test");
RECV(":server 341 alice bob :#test");
CHECK_SRV("-- alice has invited bob to #test");
}
/*