1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-27 21:36:37 +02:00

irc: use parsed command parameters in "973", "974" and "975" command callbacks

This commit is contained in:
Sébastien Helleu
2021-10-15 19:20:36 +02:00
parent 5389ceb237
commit 27f554659e
2 changed files with 24 additions and 20 deletions
+5 -5
View File
@@ -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");
}