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

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

This commit is contained in:
Sébastien Helleu
2021-10-16 13:11:54 +02:00
parent 027ecc6b0e
commit cee4bf7e3c
2 changed files with 15 additions and 12 deletions
+3 -3
View File
@@ -3078,11 +3078,11 @@ TEST(IrcProtocolWithServer, 349)
{
SRV_INIT_JOIN;
/* not enough arguments */
/* not enough parameters */
RECV(":server 349");
CHECK_ERROR_ARGS("349", 2, 4);
CHECK_ERROR_PARAMS("349", 0, 2);
RECV(":server 349 alice");
CHECK_ERROR_ARGS("349", 3, 4);
CHECK_ERROR_PARAMS("349", 1, 2);
RECV(":server 349 alice #test");
CHECK_CHAN("-- [#test]");