From 27f554659e5889790e9dc5edc0311d2ed234472e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Fri, 15 Oct 2021 19:20:36 +0200 Subject: irc: use parsed command parameters in "973", "974" and "975" command callbacks --- tests/unit/plugins/irc/test-irc-protocol.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'tests') diff --git a/tests/unit/plugins/irc/test-irc-protocol.cpp b/tests/unit/plugins/irc/test-irc-protocol.cpp index de4c05a17..89acce28d 100644 --- a/tests/unit/plugins/irc/test-irc-protocol.cpp +++ b/tests/unit/plugins/irc/test-irc-protocol.cpp @@ -3820,9 +3820,9 @@ TEST(IrcProtocolWithServer, server_mode_reason) { SRV_INIT; - /* not enough arguments */ + /* not enough parameters */ RECV(":server 973"); - CHECK_ERROR_ARGS("973", 2, 3); + CHECK_ERROR_PARAMS("973", 0, 1); RECV(":server 973 alice"); CHECK_NO_MSG; @@ -3858,7 +3858,7 @@ TEST(IrcProtocolWithServer, server_mode_reason) RECV(":server 973 bob mode test"); CHECK_SRV("-- bob: mode test"); RECV(":server 973 bob mode :test"); - CHECK_SRV("-- bob: mode :test"); + CHECK_SRV("-- bob: mode test"); RECV(":server 974 bob"); CHECK_SRV("-- bob"); @@ -3867,7 +3867,7 @@ TEST(IrcProtocolWithServer, server_mode_reason) RECV(":server 974 bob mode test"); CHECK_SRV("-- bob: mode test"); RECV(":server 974 bob mode :test"); - CHECK_SRV("-- bob: mode :test"); + CHECK_SRV("-- bob: mode test"); RECV(":server 975 bob"); CHECK_SRV("-- bob"); @@ -3876,5 +3876,5 @@ TEST(IrcProtocolWithServer, server_mode_reason) RECV(":server 975 bob mode test"); CHECK_SRV("-- bob: mode test"); RECV(":server 975 bob mode :test"); - CHECK_SRV("-- bob: mode :test"); + CHECK_SRV("-- bob: mode test"); } -- cgit v1.2.3