diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2021-10-16 18:24:33 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2021-10-17 21:28:31 +0200 |
commit | 96288d69e2d7fd5bebe21c846fc07311b985b350 (patch) | |
tree | b0478b41c53045893a1b2141e70595f56ed7f7f8 /tests/unit/plugins/irc/test-irc-protocol.cpp | |
parent | aad86a1955050db6dbfaceaed293dafd2799c3f9 (diff) | |
download | weechat-96288d69e2d7fd5bebe21c846fc07311b985b350.zip |
irc: use parsed command parameters in "367" command callback
Diffstat (limited to 'tests/unit/plugins/irc/test-irc-protocol.cpp')
-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 8216108eb..7974627a7 100644 --- a/tests/unit/plugins/irc/test-irc-protocol.cpp +++ b/tests/unit/plugins/irc/test-irc-protocol.cpp @@ -3573,13 +3573,13 @@ TEST(IrcProtocolWithServer, 367) { SRV_INIT_JOIN; - /* not enough arguments */ + /* not enough parameters */ RECV(":server 367"); - CHECK_ERROR_ARGS("367", 2, 5); + CHECK_ERROR_PARAMS("367", 0, 3); RECV(":server 367 alice"); - CHECK_ERROR_ARGS("367", 3, 5); + CHECK_ERROR_PARAMS("367", 1, 3); RECV(":server 367 alice #test"); - CHECK_ERROR_ARGS("367", 4, 5); + CHECK_ERROR_PARAMS("367", 2, 3); RECV(":server 367 alice #test nick1!user1@host1"); CHECK_CHAN("-- [#test] [1] nick1!user1@host1 banned"); |