From 3c7d4b0516d51b45d04fd7414df0edb736b73d89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Sat, 16 Oct 2021 09:28:11 +0200 Subject: irc: use parsed command parameters in "312" command callback --- tests/unit/plugins/irc/test-irc-protocol.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'tests/unit') diff --git a/tests/unit/plugins/irc/test-irc-protocol.cpp b/tests/unit/plugins/irc/test-irc-protocol.cpp index da5ce9eda..f1ce83f75 100644 --- a/tests/unit/plugins/irc/test-irc-protocol.cpp +++ b/tests/unit/plugins/irc/test-irc-protocol.cpp @@ -2456,15 +2456,15 @@ TEST(IrcProtocolWithServer, 312) { SRV_INIT; - /* not enough arguments */ + /* not enough parameters */ RECV(":server 312"); - CHECK_ERROR_ARGS("312", 2, 6); + CHECK_ERROR_PARAMS("312", 0, 4); RECV(":server 312 alice"); - CHECK_ERROR_ARGS("312", 3, 6); + CHECK_ERROR_PARAMS("312", 1, 4); RECV(":server 312 alice bob"); - CHECK_ERROR_ARGS("312", 4, 6); + CHECK_ERROR_PARAMS("312", 2, 4); RECV(":server 312 alice bob server"); - CHECK_ERROR_ARGS("312", 5, 6); + CHECK_ERROR_PARAMS("312", 3, 4); RECV(":server 312 alice bob server :https://example.com/"); CHECK_SRV("-- [bob] server (https://example.com/)"); -- cgit v1.2.3