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:55:13 +0200
committerSébastien Helleu <flashcode@flashtux.org>2021-10-17 21:28:31 +0200
commit6124bf3c9255a5fb9ea667039cecb8563b2e7025 (patch)
tree2b348dab827691ac04eff194d073cecad61aaf0a /tests/unit/plugins/irc/test-irc-protocol.cpp
parent6a8ec55118764b9f8b3c626ad6f99eb839e901a3 (diff)
downloadweechat-6124bf3c9255a5fb9ea667039cecb8563b2e7025.zip
irc: use parsed command parameters in "729" 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 3b9a2387c..73a669ef0 100644
--- a/tests/unit/plugins/irc/test-irc-protocol.cpp
+++ b/tests/unit/plugins/irc/test-irc-protocol.cpp
@@ -3863,13 +3863,13 @@ TEST(IrcProtocolWithServer, 729)
{
SRV_INIT_JOIN;
- /* not enough arguments */
+ /* not enough parameters */
RECV(":server 729");
- CHECK_ERROR_ARGS("729", 2, 5);
+ CHECK_ERROR_PARAMS("729", 0, 3);
RECV(":server 729 alice");
- CHECK_ERROR_ARGS("729", 3, 5);
+ CHECK_ERROR_PARAMS("729", 1, 3);
RECV(":server 729 alice #test");
- CHECK_ERROR_ARGS("729", 4, 5);
+ CHECK_ERROR_PARAMS("729", 2, 3);
RECV(":server 729 alice #test q");
CHECK_CHAN("-- [#test]");