summaryrefslogtreecommitdiff
path: root/tests/unit
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2021-10-16 09:25:59 +0200
committerSébastien Helleu <flashcode@flashtux.org>2021-10-17 21:28:31 +0200
commit572bcc2c597d4b60595bf22dc48fa0931ddd6696 (patch)
treefe6ccedba043d4e3f9b3538c90e59391b651d4f0 /tests/unit
parent3360cadd55bd265b8c5e1185c291f9d9a8ca4969 (diff)
downloadweechat-572bcc2c597d4b60595bf22dc48fa0931ddd6696.zip
irc: use parsed command parameters in "311" command callback
Diffstat (limited to 'tests/unit')
-rw-r--r--tests/unit/plugins/irc/test-irc-protocol.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/unit/plugins/irc/test-irc-protocol.cpp b/tests/unit/plugins/irc/test-irc-protocol.cpp
index 793df9199..da5ce9eda 100644
--- a/tests/unit/plugins/irc/test-irc-protocol.cpp
+++ b/tests/unit/plugins/irc/test-irc-protocol.cpp
@@ -2429,19 +2429,19 @@ TEST(IrcProtocolWithServer, 311)
{
SRV_INIT;
- /* not enough arguments */
+ /* not enough parameters */
RECV(":server 311");
- CHECK_ERROR_ARGS("311", 2, 8);
+ CHECK_ERROR_PARAMS("311", 0, 6);
RECV(":server 311 alice");
- CHECK_ERROR_ARGS("311", 3, 8);
+ CHECK_ERROR_PARAMS("311", 1, 6);
RECV(":server 311 alice bob");
- CHECK_ERROR_ARGS("311", 4, 8);
+ CHECK_ERROR_PARAMS("311", 2, 6);
RECV(":server 311 alice bob user");
- CHECK_ERROR_ARGS("311", 5, 8);
+ CHECK_ERROR_PARAMS("311", 3, 6);
RECV(":server 311 alice bob user host");
- CHECK_ERROR_ARGS("311", 6, 8);
+ CHECK_ERROR_PARAMS("311", 4, 6);
RECV(":server 311 alice bob user host *");
- CHECK_ERROR_ARGS("311", 7, 8);
+ CHECK_ERROR_PARAMS("311", 5, 6);
RECV(":server 311 alice bob user host * :real name");
CHECK_SRV("-- [bob] (user@host): real name");