diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2021-10-16 10:04:29 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2021-10-17 21:28:31 +0200 |
commit | 31b15c14231353c68c37ee398ff3e2c532b759ed (patch) | |
tree | dd36b9157ee0d779f1e06df3b42aff3a41a54a38 /tests/unit | |
parent | 60c9beab2bf513b3c62b47fabd12748799a68c6f (diff) | |
download | weechat-31b15c14231353c68c37ee398ff3e2c532b759ed.zip |
irc: use parsed command parameters in "328" command callback
Diffstat (limited to 'tests/unit')
-rw-r--r-- | tests/unit/plugins/irc/test-irc-protocol.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/tests/unit/plugins/irc/test-irc-protocol.cpp b/tests/unit/plugins/irc/test-irc-protocol.cpp index 8099906df..45756d782 100644 --- a/tests/unit/plugins/irc/test-irc-protocol.cpp +++ b/tests/unit/plugins/irc/test-irc-protocol.cpp @@ -2697,16 +2697,19 @@ TEST(IrcProtocolWithServer, 328) { SRV_INIT_JOIN; - /* not enough arguments */ + /* not enough parameters */ RECV(":server 328"); - CHECK_ERROR_ARGS("328", 2, 5); + CHECK_ERROR_PARAMS("328", 0, 3); RECV(":server 328 alice"); - CHECK_ERROR_ARGS("328", 3, 5); + CHECK_ERROR_PARAMS("328", 1, 3); RECV(":server 328 alice #test"); - CHECK_ERROR_ARGS("328", 4, 5); + CHECK_ERROR_PARAMS("328", 2, 3); RECV(":server 328 alice #test :https://example.com/"); CHECK_CHAN("-- URL for #test: https://example.com/"); + RECV(":server 328 alice #test :URL is https://example.com/"); + CHECK_CHAN("-- URL for #test: URL is https://example.com/"); + } /* |