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

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

This commit is contained in:
Sébastien Helleu
2021-10-16 18:30:13 +02:00
parent 96288d69e2
commit c7cb025582
2 changed files with 19 additions and 13 deletions
+3 -3
View File
@@ -3611,11 +3611,11 @@ TEST(IrcProtocolWithServer, 368)
{
SRV_INIT_JOIN;
/* not enough arguments */
/* not enough parameters */
RECV(":server 368");
CHECK_ERROR_ARGS("368", 2, 4);
CHECK_ERROR_PARAMS("368", 0, 2);
RECV(":server 368 alice");
CHECK_ERROR_ARGS("368", 3, 4);
CHECK_ERROR_PARAMS("368", 1, 2);
RECV(":server 368 alice #test");
CHECK_CHAN("-- [#test]");