diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2021-10-16 11:36:36 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2021-10-17 21:28:31 +0200 |
commit | 32ae101096fe1c508c793cfc699adc127e5a84c3 (patch) | |
tree | c8dd840db6689b4ffc42c974cb485f185b91d351 /tests/unit/plugins/irc/test-irc-protocol.cpp | |
parent | 3a5a2abeead301d4454e613ddb30da19781f2284 (diff) | |
download | weechat-32ae101096fe1c508c793cfc699adc127e5a84c3.zip |
irc: use parsed command parameters in "333" 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 8a2cd1ed0..77f6ddb7e 100644 --- a/tests/unit/plugins/irc/test-irc-protocol.cpp +++ b/tests/unit/plugins/irc/test-irc-protocol.cpp @@ -2835,13 +2835,13 @@ TEST(IrcProtocolWithServer, 333) { SRV_INIT_JOIN; - /* not enough arguments */ + /* not enough parameters */ RECV(":server 333"); - CHECK_ERROR_ARGS("333", 2, 5); + CHECK_ERROR_PARAMS("333", 0, 3); RECV(":server 333 alice"); - CHECK_ERROR_ARGS("333", 3, 5); + CHECK_ERROR_PARAMS("333", 1, 3); RECV(":server 333 alice #test"); - CHECK_ERROR_ARGS("333", 4, 5); + CHECK_ERROR_PARAMS("333", 2, 3); RECV(":server 333 alice #test nick!user@host"); CHECK_NO_MSG; |