diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2021-10-16 09:36:38 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2021-10-17 21:28:31 +0200 |
commit | 4e1d40034e31007fe619739051cd1c8e80b1f7b9 (patch) | |
tree | e8fa208d829b7ce2e21f8401b49abfdc80d158cb /tests/unit/plugins/irc/test-irc-protocol.cpp | |
parent | a1a4f337ff3d3d592640c8e0696d2e20f9d07445 (diff) | |
download | weechat-4e1d40034e31007fe619739051cd1c8e80b1f7b9.zip |
irc: use parsed command parameters in "317" command callback
Diffstat (limited to 'tests/unit/plugins/irc/test-irc-protocol.cpp')
-rw-r--r-- | tests/unit/plugins/irc/test-irc-protocol.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/unit/plugins/irc/test-irc-protocol.cpp b/tests/unit/plugins/irc/test-irc-protocol.cpp index ef3e4e338..fb482edd8 100644 --- a/tests/unit/plugins/irc/test-irc-protocol.cpp +++ b/tests/unit/plugins/irc/test-irc-protocol.cpp @@ -2530,15 +2530,15 @@ TEST(IrcProtocolWithServer, 317) SRV_INIT; - /* not enough arguments */ + /* not enough parameters */ RECV(":server 317"); - CHECK_ERROR_ARGS("317", 2, 6); + CHECK_ERROR_PARAMS("317", 0, 4); RECV(":server 317 alice"); - CHECK_ERROR_ARGS("317", 3, 6); + CHECK_ERROR_PARAMS("317", 1, 4); RECV(":server 317 alice bob"); - CHECK_ERROR_ARGS("317", 4, 6); + CHECK_ERROR_PARAMS("317", 2, 4); RECV(":server 317 alice bob 122877"); - CHECK_ERROR_ARGS("317", 5, 6); + CHECK_ERROR_PARAMS("317", 3, 4); /* signon at 03/12/2008 @ 1:18pm (UTC) */ RECV(":server 317 alice bob 122877 1205327880"); |