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

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

This commit is contained in:
Sébastien Helleu
2021-10-15 19:59:40 +02:00
parent 1029780ce2
commit 033fbf63b0
2 changed files with 17 additions and 10 deletions
+4 -4
View File
@@ -2122,14 +2122,14 @@ TEST(IrcProtocolWithServer, 008)
{
SRV_INIT;
/* not enough arguments */
/* not enough parameters */
RECV(":server 008");
CHECK_ERROR_ARGS("008", 2, 4);
CHECK_ERROR_PARAMS("008", 0, 2);
RECV(":server 008 alice");
CHECK_ERROR_ARGS("008", 3, 4);
CHECK_ERROR_PARAMS("008", 1, 2);
RECV(":server 008 alice +Zbfkrsuy :Server notice mask");
CHECK_SRV("-- Server notice mask for alice: +Zbfkrsuy :Server notice mask");
CHECK_SRV("-- Server notice mask for alice: +Zbfkrsuy Server notice mask");
}
/*