From a5e470a16a80a95ca396c8023ca4b06e2ae4d86b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Sat, 16 Oct 2021 10:12:02 +0200 Subject: irc: use parsed command parameters in "330" and "343" command callbacks --- tests/unit/plugins/irc/test-irc-protocol.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'tests/unit/plugins/irc') diff --git a/tests/unit/plugins/irc/test-irc-protocol.cpp b/tests/unit/plugins/irc/test-irc-protocol.cpp index 2f787c69b..12a4f9dde 100644 --- a/tests/unit/plugins/irc/test-irc-protocol.cpp +++ b/tests/unit/plugins/irc/test-irc-protocol.cpp @@ -2751,21 +2751,21 @@ TEST(IrcProtocolWithServer, 330_343) { SRV_INIT_JOIN; - /* not enough arguments */ + /* not enough parameters */ RECV(":server 330"); - CHECK_ERROR_ARGS("330", 2, 5); + CHECK_ERROR_PARAMS("330", 0, 3); RECV(":server 330 alice"); - CHECK_ERROR_ARGS("330", 3, 5); + CHECK_ERROR_PARAMS("330", 1, 3); RECV(":server 330 alice bob"); - CHECK_ERROR_ARGS("330", 4, 5); + CHECK_ERROR_PARAMS("330", 2, 3); - /* not enough arguments */ + /* not enough parameters */ RECV(":server 343"); - CHECK_ERROR_ARGS("343", 2, 5); + CHECK_ERROR_PARAMS("343", 0, 3); RECV(":server 343 alice"); - CHECK_ERROR_ARGS("343", 3, 5); + CHECK_ERROR_PARAMS("343", 1, 3); RECV(":server 343 alice bob"); - CHECK_ERROR_ARGS("343", 4, 5); + CHECK_ERROR_PARAMS("343", 2, 3); RECV(":server 330 alice bob bob2"); CHECK_SRV("-- [bob] bob2"); -- cgit v1.2.3