diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2021-10-16 09:34:08 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2021-10-17 21:28:31 +0200 |
commit | a1a4f337ff3d3d592640c8e0696d2e20f9d07445 (patch) | |
tree | 54ae6439ce3531fe869a01fe83f9018373eb7a0e /tests/unit/plugins | |
parent | e412a34668a64990a006941984ce8fe1f3de5af7 (diff) | |
download | weechat-a1a4f337ff3d3d592640c8e0696d2e20f9d07445.zip |
irc: use parsed command parameters in "315" command callback
Diffstat (limited to 'tests/unit/plugins')
-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 0097e15cd..ef3e4e338 100644 --- a/tests/unit/plugins/irc/test-irc-protocol.cpp +++ b/tests/unit/plugins/irc/test-irc-protocol.cpp @@ -2506,13 +2506,13 @@ TEST(IrcProtocolWithServer, 315) { SRV_INIT_JOIN; - /* not enough arguments */ + /* not enough parameters */ RECV(":server 315"); - CHECK_ERROR_ARGS("315", 2, 5); + CHECK_ERROR_PARAMS("315", 0, 3); RECV(":server 315 alice"); - CHECK_ERROR_ARGS("315", 3, 5); + CHECK_ERROR_PARAMS("315", 1, 3); RECV(":server 315 alice #test"); - CHECK_ERROR_ARGS("315", 4, 5); + CHECK_ERROR_PARAMS("315", 2, 3); RECV(":server 315 alice #test End of /WHO list."); CHECK_SRV("-- [#test] End of /WHO list."); |