summaryrefslogtreecommitdiff
path: root/tests/unit/plugins/irc/test-irc-protocol.cpp
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2021-10-16 18:24:33 +0200
committerSébastien Helleu <flashcode@flashtux.org>2021-10-17 21:28:31 +0200
commit96288d69e2d7fd5bebe21c846fc07311b985b350 (patch)
treeb0478b41c53045893a1b2141e70595f56ed7f7f8 /tests/unit/plugins/irc/test-irc-protocol.cpp
parentaad86a1955050db6dbfaceaed293dafd2799c3f9 (diff)
downloadweechat-96288d69e2d7fd5bebe21c846fc07311b985b350.zip
irc: use parsed command parameters in "367" command callback
Diffstat (limited to 'tests/unit/plugins/irc/test-irc-protocol.cpp')
-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 8216108eb..7974627a7 100644
--- a/tests/unit/plugins/irc/test-irc-protocol.cpp
+++ b/tests/unit/plugins/irc/test-irc-protocol.cpp
@@ -3573,13 +3573,13 @@ TEST(IrcProtocolWithServer, 367)
{
SRV_INIT_JOIN;
- /* not enough arguments */
+ /* not enough parameters */
RECV(":server 367");
- CHECK_ERROR_ARGS("367", 2, 5);
+ CHECK_ERROR_PARAMS("367", 0, 3);
RECV(":server 367 alice");
- CHECK_ERROR_ARGS("367", 3, 5);
+ CHECK_ERROR_PARAMS("367", 1, 3);
RECV(":server 367 alice #test");
- CHECK_ERROR_ARGS("367", 4, 5);
+ CHECK_ERROR_PARAMS("367", 2, 3);
RECV(":server 367 alice #test nick1!user1@host1");
CHECK_CHAN("-- [#test] [1] nick1!user1@host1 banned");