diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2021-10-16 13:09:35 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2021-10-17 21:28:31 +0200 |
commit | 027ecc6b0ec9c2665ba779c0d8cf30a31080f23b (patch) | |
tree | 31c7262315feb2b177cd6298d2f68c87b3e02089 /tests/unit/plugins/irc | |
parent | 22ecfda7775ddb44e445b6facd35ae24a86171b4 (diff) | |
download | weechat-027ecc6b0ec9c2665ba779c0d8cf30a31080f23b.zip |
irc: use parsed command parameters in "348" command callback
Diffstat (limited to 'tests/unit/plugins/irc')
-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 82b0e5dff..2c949154d 100644 --- a/tests/unit/plugins/irc/test-irc-protocol.cpp +++ b/tests/unit/plugins/irc/test-irc-protocol.cpp @@ -3039,13 +3039,13 @@ TEST(IrcProtocolWithServer, 348) { SRV_INIT_JOIN; - /* not enough arguments */ + /* not enough parameters */ RECV(":server 348"); - CHECK_ERROR_ARGS("348", 2, 5); + CHECK_ERROR_PARAMS("348", 0, 3); RECV(":server 348 alice"); - CHECK_ERROR_ARGS("348", 3, 5); + CHECK_ERROR_PARAMS("348", 1, 3); RECV(":server 348 alice #test"); - CHECK_ERROR_ARGS("348", 4, 5); + CHECK_ERROR_PARAMS("348", 2, 3); RECV(":server 348 alice #test nick1!user1@host1"); CHECK_CHAN("-- [#test] [1] exception nick1!user1@host1"); |