1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-01 23:36:37 +02:00

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

This commit is contained in:
Sébastien Helleu
2021-10-16 11:36:36 +02:00
parent 3a5a2abeea
commit 32ae101096
2 changed files with 14 additions and 16 deletions
+4 -4
View File
@@ -2835,13 +2835,13 @@ TEST(IrcProtocolWithServer, 333)
{
SRV_INIT_JOIN;
/* not enough arguments */
/* not enough parameters */
RECV(":server 333");
CHECK_ERROR_ARGS("333", 2, 5);
CHECK_ERROR_PARAMS("333", 0, 3);
RECV(":server 333 alice");
CHECK_ERROR_ARGS("333", 3, 5);
CHECK_ERROR_PARAMS("333", 1, 3);
RECV(":server 333 alice #test");
CHECK_ERROR_ARGS("333", 4, 5);
CHECK_ERROR_PARAMS("333", 2, 3);
RECV(":server 333 alice #test nick!user@host");
CHECK_NO_MSG;