1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-27 13:26:38 +02:00

irc: use parsed command parameters in "900" command callback

This commit is contained in:
Sébastien Helleu
2021-10-16 19:29:45 +02:00
parent baa91a45a8
commit a3ddeba9f9
2 changed files with 17 additions and 10 deletions
+5 -5
View File
@@ -4004,15 +4004,15 @@ TEST(IrcProtocolWithServer, 900)
{
SRV_INIT;
/* not enough arguments */
/* not enough parameters */
RECV(":server 900");
CHECK_ERROR_ARGS("900", 2, 6);
CHECK_ERROR_PARAMS("900", 0, 4);
RECV(":server 900 alice");
CHECK_ERROR_ARGS("900", 3, 6);
CHECK_ERROR_PARAMS("900", 1, 4);
RECV(":server 900 alice alice!user@host");
CHECK_ERROR_ARGS("900", 4, 6);
CHECK_ERROR_PARAMS("900", 2, 4);
RECV(":server 900 alice alice!user@host alice");
CHECK_ERROR_ARGS("900", 5, 6);
CHECK_ERROR_PARAMS("900", 3, 4);
RECV(":server 900 alice alice!user@host alice logged");
CHECK_SRV("-- logged (alice!user@host)");