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

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

This commit is contained in:
Sébastien Helleu
2021-10-16 18:24:33 +02:00
parent aad86a1955
commit 96288d69e2
2 changed files with 27 additions and 24 deletions
+4 -4
View File
@@ -3573,13 +3573,13 @@ TEST(IrcProtocolWithServer, 367)
{
SRV_INIT_JOIN;
/* not enough arguments */
/* not enough parameters */
RECV(":server 367");
CHECK_ERROR_ARGS("367", 2, 5);
CHECK_ERROR_PARAMS("367", 0, 3);
RECV(":server 367 alice");
CHECK_ERROR_ARGS("367", 3, 5);
CHECK_ERROR_PARAMS("367", 1, 3);
RECV(":server 367 alice #test");
CHECK_ERROR_ARGS("367", 4, 5);
CHECK_ERROR_PARAMS("367", 2, 3);
RECV(":server 367 alice #test nick1!user1@host1");
CHECK_CHAN("-- [#test] [1] nick1!user1@host1 banned");