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 11:47:09 +0200
committerSébastien Helleu <flashcode@flashtux.org>2021-10-17 21:28:31 +0200
commit741343e9aa67acf66b4aef2d42dedcf58414885f (patch)
tree1e5f786ae1ecd21012090ec7eef52136fa8c4b42 /tests/unit/plugins/irc/test-irc-protocol.cpp
parent0e9710de8114d214a314b21ac4716bc7c94a678f (diff)
downloadweechat-741343e9aa67acf66b4aef2d42dedcf58414885f.zip
irc: use parsed command parameters in "341" command callback
Diffstat (limited to 'tests/unit/plugins/irc/test-irc-protocol.cpp')
-rw-r--r--tests/unit/plugins/irc/test-irc-protocol.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/tests/unit/plugins/irc/test-irc-protocol.cpp b/tests/unit/plugins/irc/test-irc-protocol.cpp
index 9ea7f492d..97f08e1dc 100644
--- a/tests/unit/plugins/irc/test-irc-protocol.cpp
+++ b/tests/unit/plugins/irc/test-irc-protocol.cpp
@@ -2892,16 +2892,18 @@ TEST(IrcProtocolWithServer, 341)
{
SRV_INIT;
- /* not enough arguments */
+ /* not enough parameters */
RECV(":server 341");
- CHECK_ERROR_ARGS("341", 2, 5);
+ CHECK_ERROR_PARAMS("341", 0, 3);
RECV(":server 341 alice");
- CHECK_ERROR_ARGS("341", 3, 5);
+ CHECK_ERROR_PARAMS("341", 1, 3);
RECV(":server 341 alice bob");
- CHECK_ERROR_ARGS("341", 4, 5);
+ CHECK_ERROR_PARAMS("341", 2, 3);
RECV(":server 341 alice bob #test");
CHECK_SRV("-- alice has invited bob to #test");
+ RECV(":server 341 alice bob :#test");
+ CHECK_SRV("-- alice has invited bob to #test");
}
/*