From 741343e9aa67acf66b4aef2d42dedcf58414885f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Sat, 16 Oct 2021 11:47:09 +0200 Subject: irc: use parsed command parameters in "341" command callback --- tests/unit/plugins/irc/test-irc-protocol.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'tests/unit/plugins/irc/test-irc-protocol.cpp') diff --git a/tests/unit/plugins/irc/test-irc-protocol.cpp b/tests/unit/plugins/irc/test-irc-protocol.cpp index 9ea7f492d..97f08e1dc 100644 --- a/tests/unit/plugins/irc/test-irc-protocol.cpp +++ b/tests/unit/plugins/irc/test-irc-protocol.cpp @@ -2892,16 +2892,18 @@ TEST(IrcProtocolWithServer, 341) { SRV_INIT; - /* not enough arguments */ + /* not enough parameters */ RECV(":server 341"); - CHECK_ERROR_ARGS("341", 2, 5); + CHECK_ERROR_PARAMS("341", 0, 3); RECV(":server 341 alice"); - CHECK_ERROR_ARGS("341", 3, 5); + CHECK_ERROR_PARAMS("341", 1, 3); RECV(":server 341 alice bob"); - CHECK_ERROR_ARGS("341", 4, 5); + CHECK_ERROR_PARAMS("341", 2, 3); RECV(":server 341 alice bob #test"); CHECK_SRV("-- alice has invited bob to #test"); + RECV(":server 341 alice bob :#test"); + CHECK_SRV("-- alice has invited bob to #test"); } /* -- cgit v1.2.3