diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2021-10-15 20:00:07 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2021-10-17 21:28:31 +0200 |
commit | 12a4519448b1dec527a5811580c936d8e6c8c669 (patch) | |
tree | 77d01c766cce493c01391517a4ceaa2ad50c1526 /tests/unit/plugins | |
parent | 033fbf63b0a4c7a8e5fecc93cae29eb007c93fc4 (diff) | |
download | weechat-12a4519448b1dec527a5811580c936d8e6c8c669.zip |
irc: use parsed command parameters in "221" command callback
Diffstat (limited to 'tests/unit/plugins')
-rw-r--r-- | tests/unit/plugins/irc/test-irc-protocol.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/unit/plugins/irc/test-irc-protocol.cpp b/tests/unit/plugins/irc/test-irc-protocol.cpp index baa7575f0..1dafc9469 100644 --- a/tests/unit/plugins/irc/test-irc-protocol.cpp +++ b/tests/unit/plugins/irc/test-irc-protocol.cpp @@ -2141,11 +2141,11 @@ TEST(IrcProtocolWithServer, 221) { SRV_INIT; - /* not enough arguments */ + /* not enough parameters */ RECV(":server 221"); - CHECK_ERROR_ARGS("221", 2, 4); + CHECK_ERROR_PARAMS("221", 0, 2); RECV(":server 221 alice"); - CHECK_ERROR_ARGS("221", 3, 4); + CHECK_ERROR_PARAMS("221", 1, 2); POINTERS_EQUAL(NULL, ptr_server->nick_modes); |