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

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

This commit is contained in:
Sébastien Helleu
2021-10-16 09:39:00 +02:00
parent 4e1d40034e
commit c577da0375
2 changed files with 13 additions and 11 deletions
+3 -3
View File
@@ -2566,11 +2566,11 @@ TEST(IrcProtocolWithServer, 321)
{
SRV_INIT;
/* not enough arguments */
/* not enough parameters */
RECV(":server 321");
CHECK_ERROR_ARGS("321", 2, 4);
CHECK_ERROR_PARAMS("321", 0, 2);
RECV(":server 321 alice");
CHECK_ERROR_ARGS("321", 3, 4);
CHECK_ERROR_PARAMS("321", 1, 2);
RECV(":server 321 alice #test");
CHECK_SRV("-- #test");