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:30:13 +0200
committerSébastien Helleu <flashcode@flashtux.org>2021-10-17 21:28:31 +0200
commitc7cb025582936070cad90916d60186671ad47523 (patch)
treec4bc8dc7567f6336dc72f7c12a32139fef55e4cb /tests/unit/plugins/irc/test-irc-protocol.cpp
parent96288d69e2d7fd5bebe21c846fc07311b985b350 (diff)
downloadweechat-c7cb025582936070cad90916d60186671ad47523.zip
irc: use parsed command parameters in "368" command callback
Diffstat (limited to 'tests/unit/plugins/irc/test-irc-protocol.cpp')
-rw-r--r--tests/unit/plugins/irc/test-irc-protocol.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/unit/plugins/irc/test-irc-protocol.cpp b/tests/unit/plugins/irc/test-irc-protocol.cpp
index 7974627a7..cb0d5754c 100644
--- a/tests/unit/plugins/irc/test-irc-protocol.cpp
+++ b/tests/unit/plugins/irc/test-irc-protocol.cpp
@@ -3611,11 +3611,11 @@ TEST(IrcProtocolWithServer, 368)
{
SRV_INIT_JOIN;
- /* not enough arguments */
+ /* not enough parameters */
RECV(":server 368");
- CHECK_ERROR_ARGS("368", 2, 4);
+ CHECK_ERROR_PARAMS("368", 0, 2);
RECV(":server 368 alice");
- CHECK_ERROR_ARGS("368", 3, 4);
+ CHECK_ERROR_PARAMS("368", 1, 2);
RECV(":server 368 alice #test");
CHECK_CHAN("-- [#test]");