From 027ecc6b0ec9c2665ba779c0d8cf30a31080f23b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Sat, 16 Oct 2021 13:09:35 +0200 Subject: irc: use parsed command parameters in "348" command callback --- tests/unit/plugins/irc/test-irc-protocol.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 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 82b0e5dff..2c949154d 100644 --- a/tests/unit/plugins/irc/test-irc-protocol.cpp +++ b/tests/unit/plugins/irc/test-irc-protocol.cpp @@ -3039,13 +3039,13 @@ TEST(IrcProtocolWithServer, 348) { SRV_INIT_JOIN; - /* not enough arguments */ + /* not enough parameters */ RECV(":server 348"); - CHECK_ERROR_ARGS("348", 2, 5); + CHECK_ERROR_PARAMS("348", 0, 3); RECV(":server 348 alice"); - CHECK_ERROR_ARGS("348", 3, 5); + CHECK_ERROR_PARAMS("348", 1, 3); RECV(":server 348 alice #test"); - CHECK_ERROR_ARGS("348", 4, 5); + CHECK_ERROR_PARAMS("348", 2, 3); RECV(":server 348 alice #test nick1!user1@host1"); CHECK_CHAN("-- [#test] [1] exception nick1!user1@host1"); -- cgit v1.2.3