diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2021-10-16 13:04:22 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2021-10-17 21:28:31 +0200 |
commit | 2ae974f5c38176f5e119bc0dcd252e0c34fd2aea (patch) | |
tree | ce63ab826c688f629c46da4e24aa26f07ece9270 /tests/unit | |
parent | 99d565f6df803dd4feb0ca2b4bcbcaeac2fe7ea3 (diff) | |
download | weechat-2ae974f5c38176f5e119bc0dcd252e0c34fd2aea.zip |
irc: use parsed command parameters in "346" command callback
Diffstat (limited to 'tests/unit')
-rw-r--r-- | tests/unit/plugins/irc/test-irc-protocol.cpp | 8 |
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 e5a0fd685..d98133340 100644 --- a/tests/unit/plugins/irc/test-irc-protocol.cpp +++ b/tests/unit/plugins/irc/test-irc-protocol.cpp @@ -2973,13 +2973,13 @@ TEST(IrcProtocolWithServer, 346) { SRV_INIT_JOIN; - /* not enough arguments */ + /* not enough parameters */ RECV(":server 346"); - CHECK_ERROR_ARGS("346", 2, 5); + CHECK_ERROR_PARAMS("346", 0, 3); RECV(":server 346 alice"); - CHECK_ERROR_ARGS("346", 3, 5); + CHECK_ERROR_PARAMS("346", 1, 3); RECV(":server 346 alice #test"); - CHECK_ERROR_ARGS("346", 4, 5); + CHECK_ERROR_PARAMS("346", 2, 3); RECV(":server 346 alice #test invitemask"); CHECK_CHAN("-- [#test] [1] invitemask invited"); |