summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2021-10-16 09:54:34 +0200
committerSébastien Helleu <flashcode@flashtux.org>2021-10-17 21:28:31 +0200
commit10a1c9bda4032d39bdcc217e7468a39a38febbf2 (patch)
tree082705cb10190e6b11542356b68a9f5c3b76cfea /tests
parent6f8f5472429377833d1c430fa9e9d4ccb9c3a6c3 (diff)
downloadweechat-10a1c9bda4032d39bdcc217e7468a39a38febbf2.zip
irc: use parsed command parameters in "327" command callback
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/plugins/irc/test-irc-protocol.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/unit/plugins/irc/test-irc-protocol.cpp b/tests/unit/plugins/irc/test-irc-protocol.cpp
index e903f2e31..8099906df 100644
--- a/tests/unit/plugins/irc/test-irc-protocol.cpp
+++ b/tests/unit/plugins/irc/test-irc-protocol.cpp
@@ -2672,15 +2672,15 @@ TEST(IrcProtocolWithServer, 327)
{
SRV_INIT;
- /* not enough arguments */
+ /* not enough parameters */
RECV(":server 327");
- CHECK_ERROR_ARGS("327", 2, 6);
+ CHECK_ERROR_PARAMS("327", 0, 4);
RECV(":server 327 alice");
- CHECK_ERROR_ARGS("327", 3, 6);
+ CHECK_ERROR_PARAMS("327", 1, 4);
RECV(":server 327 alice bob");
- CHECK_ERROR_ARGS("327", 4, 6);
+ CHECK_ERROR_PARAMS("327", 2, 4);
RECV(":server 327 alice bob host");
- CHECK_ERROR_ARGS("327", 5, 6);
+ CHECK_ERROR_PARAMS("327", 3, 4);
RECV(":server 327 alice bob host 1.2.3.4");
CHECK_SRV("-- [bob] host 1.2.3.4");