summaryrefslogtreecommitdiff
path: root/tests/unit
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2021-10-16 09:42:25 +0200
committerSébastien Helleu <flashcode@flashtux.org>2021-10-17 21:28:31 +0200
commitdf9c32b0c3ef78c9a8866779e554994f694139f6 (patch)
treee99b0172f399dc52fac1ead838ec5a7e0b7b30b4 /tests/unit
parentc577da0375c8f75a073d63e582a5a37a7ed2c782 (diff)
downloadweechat-df9c32b0c3ef78c9a8866779e554994f694139f6.zip
irc: use parsed command parameters in "322" command callback
Diffstat (limited to 'tests/unit')
-rw-r--r--tests/unit/plugins/irc/test-irc-protocol.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/unit/plugins/irc/test-irc-protocol.cpp b/tests/unit/plugins/irc/test-irc-protocol.cpp
index 40a39857c..58d316de1 100644
--- a/tests/unit/plugins/irc/test-irc-protocol.cpp
+++ b/tests/unit/plugins/irc/test-irc-protocol.cpp
@@ -2589,13 +2589,13 @@ TEST(IrcProtocolWithServer, 322)
{
SRV_INIT;
- /* not enough arguments */
+ /* not enough parameters */
RECV(":server 322");
- CHECK_ERROR_ARGS("322", 2, 5);
+ CHECK_ERROR_PARAMS("322", 0, 3);
RECV(":server 322 alice");
- CHECK_ERROR_ARGS("322", 3, 5);
+ CHECK_ERROR_PARAMS("322", 1, 3);
RECV(":server 322 alice #test");
- CHECK_ERROR_ARGS("322", 4, 5);
+ CHECK_ERROR_PARAMS("322", 2, 3);
RECV(":server 322 alice #test 3");
CHECK_SRV("-- #test(3)");