1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-29 14:26:39 +02:00

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

This commit is contained in:
Sébastien Helleu
2021-10-16 13:22:09 +02:00
parent cee4bf7e3c
commit 9b17f1fee4
2 changed files with 16 additions and 12 deletions
+4 -4
View File
@@ -3109,13 +3109,13 @@ TEST(IrcProtocolWithServer, 351)
{
SRV_INIT;
/* not enough arguments */
/* not enough parameters */
RECV(":server 351");
CHECK_ERROR_ARGS("351", 2, 5);
CHECK_ERROR_PARAMS("351", 0, 3);
RECV(":server 351 alice");
CHECK_ERROR_ARGS("351", 3, 5);
CHECK_ERROR_PARAMS("351", 1, 3);
RECV(":server 351 alice dancer-ircd-1.0");
CHECK_ERROR_ARGS("351", 4, 5);
CHECK_ERROR_PARAMS("351", 2, 3);
RECV(":server 351 alice dancer-ircd-1.0 server");
CHECK_SRV("-- dancer-ircd-1.0 server");