summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2021-10-15 19:20:36 +0200
committerSébastien Helleu <flashcode@flashtux.org>2021-10-17 21:28:31 +0200
commit27f554659e5889790e9dc5edc0311d2ed234472e (patch)
tree7dfd227e286c11adc68da86417ab5a20a64b961f /tests
parent5389ceb237874ed8c7ce47f4c6312a9bc5bc531e (diff)
downloadweechat-27f554659e5889790e9dc5edc0311d2ed234472e.zip
irc: use parsed command parameters in "973", "974" and "975" command callbacks
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/plugins/irc/test-irc-protocol.cpp10
1 files changed, 5 insertions, 5 deletions
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");
}