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

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

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