summaryrefslogtreecommitdiff
path: root/tests/unit/plugins/irc
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2021-10-16 10:12:02 +0200
committerSébastien Helleu <flashcode@flashtux.org>2021-10-17 21:28:31 +0200
commita5e470a16a80a95ca396c8023ca4b06e2ae4d86b (patch)
tree1abcfc63f495905b60bed94da06673518bd2ffb5 /tests/unit/plugins/irc
parentb3ce8b52821dc738b6f3cb8175c4286cc59a7f58 (diff)
downloadweechat-a5e470a16a80a95ca396c8023ca4b06e2ae4d86b.zip
irc: use parsed command parameters in "330" and "343" command callbacks
Diffstat (limited to 'tests/unit/plugins/irc')
-rw-r--r--tests/unit/plugins/irc/test-irc-protocol.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/unit/plugins/irc/test-irc-protocol.cpp b/tests/unit/plugins/irc/test-irc-protocol.cpp
index 2f787c69b..12a4f9dde 100644
--- a/tests/unit/plugins/irc/test-irc-protocol.cpp
+++ b/tests/unit/plugins/irc/test-irc-protocol.cpp
@@ -2751,21 +2751,21 @@ TEST(IrcProtocolWithServer, 330_343)
{
SRV_INIT_JOIN;
- /* not enough arguments */
+ /* not enough parameters */
RECV(":server 330");
- CHECK_ERROR_ARGS("330", 2, 5);
+ CHECK_ERROR_PARAMS("330", 0, 3);
RECV(":server 330 alice");
- CHECK_ERROR_ARGS("330", 3, 5);
+ CHECK_ERROR_PARAMS("330", 1, 3);
RECV(":server 330 alice bob");
- CHECK_ERROR_ARGS("330", 4, 5);
+ CHECK_ERROR_PARAMS("330", 2, 3);
- /* not enough arguments */
+ /* not enough parameters */
RECV(":server 343");
- CHECK_ERROR_ARGS("343", 2, 5);
+ CHECK_ERROR_PARAMS("343", 0, 3);
RECV(":server 343 alice");
- CHECK_ERROR_ARGS("343", 3, 5);
+ CHECK_ERROR_PARAMS("343", 1, 3);
RECV(":server 343 alice bob");
- CHECK_ERROR_ARGS("343", 4, 5);
+ CHECK_ERROR_PARAMS("343", 2, 3);
RECV(":server 330 alice bob bob2");
CHECK_SRV("-- [bob] bob2");