1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-28 05:46:38 +02:00

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

This commit is contained in:
Sébastien Helleu
2021-10-16 09:28:11 +02:00
parent 572bcc2c59
commit 3c7d4b0516
2 changed files with 19 additions and 12 deletions
+5 -5
View File
@@ -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/)");