1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-29 14:26:39 +02:00

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

This commit is contained in:
Sébastien Helleu
2021-10-16 13:09:35 +02:00
parent 22ecfda777
commit 027ecc6b0e
2 changed files with 22 additions and 23 deletions
+4 -4
View File
@@ -3039,13 +3039,13 @@ TEST(IrcProtocolWithServer, 348)
{
SRV_INIT_JOIN;
/* not enough arguments */
/* not enough parameters */
RECV(":server 348");
CHECK_ERROR_ARGS("348", 2, 5);
CHECK_ERROR_PARAMS("348", 0, 3);
RECV(":server 348 alice");
CHECK_ERROR_ARGS("348", 3, 5);
CHECK_ERROR_PARAMS("348", 1, 3);
RECV(":server 348 alice #test");
CHECK_ERROR_ARGS("348", 4, 5);
CHECK_ERROR_PARAMS("348", 2, 3);
RECV(":server 348 alice #test nick1!user1@host1");
CHECK_CHAN("-- [#test] [1] exception nick1!user1@host1");