summaryrefslogtreecommitdiff
path: root/tests/unit
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2021-10-16 09:49:29 +0200
committerSébastien Helleu <flashcode@flashtux.org>2021-10-17 21:28:31 +0200
commit6f8f5472429377833d1c430fa9e9d4ccb9c3a6c3 (patch)
treed144cea2e7aeb146a47e23bec8ed49a6c72a1401 /tests/unit
parent2509486c6ae801f284b2eb1e6af29602d46b52a1 (diff)
downloadweechat-6f8f5472429377833d1c430fa9e9d4ccb9c3a6c3.zip
irc: use parsed command parameters in "324" command callback
Diffstat (limited to 'tests/unit')
-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 e991ec958..e903f2e31 100644
--- a/tests/unit/plugins/irc/test-irc-protocol.cpp
+++ b/tests/unit/plugins/irc/test-irc-protocol.cpp
@@ -2648,11 +2648,11 @@ TEST(IrcProtocolWithServer, 324)
POINTERS_EQUAL(NULL, ptr_server->channels->modes);
- /* not enough arguments */
+ /* not enough parameters */
RECV(":server 324");
- CHECK_ERROR_ARGS("324", 2, 4);
+ CHECK_ERROR_PARAMS("324", 0, 2);
RECV(":server 324 alice");
- CHECK_ERROR_ARGS("324", 3, 4);
+ CHECK_ERROR_PARAMS("324", 1, 2);
RECV(":server 324 alice #test +nt");
CHECK_NO_MSG;