summaryrefslogtreecommitdiff
path: root/tests/unit/plugins/irc/test-irc-protocol.cpp
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2021-10-16 10:06:28 +0200
committerSébastien Helleu <flashcode@flashtux.org>2021-10-17 21:28:31 +0200
commitb3ce8b52821dc738b6f3cb8175c4286cc59a7f58 (patch)
tree01a580bcea51c3fb3163dd89229591bc990dbae0 /tests/unit/plugins/irc/test-irc-protocol.cpp
parent31b15c14231353c68c37ee398ff3e2c532b759ed (diff)
downloadweechat-b3ce8b52821dc738b6f3cb8175c4286cc59a7f58.zip
irc: use parsed command parameters in "329" command callback
Diffstat (limited to 'tests/unit/plugins/irc/test-irc-protocol.cpp')
-rw-r--r--tests/unit/plugins/irc/test-irc-protocol.cpp8
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 45756d782..2f787c69b 100644
--- a/tests/unit/plugins/irc/test-irc-protocol.cpp
+++ b/tests/unit/plugins/irc/test-irc-protocol.cpp
@@ -2721,13 +2721,13 @@ TEST(IrcProtocolWithServer, 329)
{
SRV_INIT_JOIN;
- /* not enough arguments */
+ /* not enough parameters */
RECV(":server 329");
- CHECK_ERROR_ARGS("329", 2, 5);
+ CHECK_ERROR_PARAMS("329", 0, 3);
RECV(":server 329 alice");
- CHECK_ERROR_ARGS("329", 3, 5);
+ CHECK_ERROR_PARAMS("329", 1, 3);
RECV(":server 329 alice #test");
- CHECK_ERROR_ARGS("329", 4, 5);
+ CHECK_ERROR_PARAMS("329", 2, 3);
RECV(":server 329 alice #test 1205327894");
CHECK_CHAN("-- Channel created on Wed, 12 Mar 2008 13:18:14");