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

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

This commit is contained in:
Sébastien Helleu
2021-10-16 11:56:03 +02:00
parent 5546b0af0e
commit 99d565f6df
2 changed files with 15 additions and 8 deletions
+4 -4
View File
@@ -2944,13 +2944,13 @@ TEST(IrcProtocolWithServer, 345)
{
SRV_INIT_JOIN;
/* not enough arguments */
/* not enough parameters */
RECV(":server 345");
CHECK_ERROR_ARGS("345", 2, 5);
CHECK_ERROR_PARAMS("345", 0, 3);
RECV(":server 345 alice");
CHECK_ERROR_ARGS("345", 3, 5);
CHECK_ERROR_PARAMS("345", 1, 3);
RECV(":server 345 alice #test");
CHECK_ERROR_ARGS("345", 4, 5);
CHECK_ERROR_PARAMS("345", 2, 3);
RECV(":server 345 alice #test end");
CHECK_SRV("-- #test: end");