diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2021-10-16 13:11:54 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2021-10-17 21:28:31 +0200 |
commit | cee4bf7e3ca583c7f837366fcb885253b039539d (patch) | |
tree | d7dadd4b91c218c97106bee1e9a0c3bdbc7a8e4a /tests/unit/plugins/irc/test-irc-protocol.cpp | |
parent | 027ecc6b0ec9c2665ba779c0d8cf30a31080f23b (diff) | |
download | weechat-cee4bf7e3ca583c7f837366fcb885253b039539d.zip |
irc: use parsed command parameters in "349" command callback
Diffstat (limited to 'tests/unit/plugins/irc/test-irc-protocol.cpp')
-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 2c949154d..6ae32ad00 100644 --- a/tests/unit/plugins/irc/test-irc-protocol.cpp +++ b/tests/unit/plugins/irc/test-irc-protocol.cpp @@ -3078,11 +3078,11 @@ TEST(IrcProtocolWithServer, 349) { SRV_INIT_JOIN; - /* not enough arguments */ + /* not enough parameters */ RECV(":server 349"); - CHECK_ERROR_ARGS("349", 2, 4); + CHECK_ERROR_PARAMS("349", 0, 2); RECV(":server 349 alice"); - CHECK_ERROR_ARGS("349", 3, 4); + CHECK_ERROR_PARAMS("349", 1, 2); RECV(":server 349 alice #test"); CHECK_CHAN("-- [#test]"); |