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

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

This commit is contained in:
Sébastien Helleu
2021-10-16 09:34:08 +02:00
parent e412a34668
commit a1a4f337ff
2 changed files with 13 additions and 9 deletions
+4 -4
View File
@@ -2506,13 +2506,13 @@ TEST(IrcProtocolWithServer, 315)
{
SRV_INIT_JOIN;
/* not enough arguments */
/* not enough parameters */
RECV(":server 315");
CHECK_ERROR_ARGS("315", 2, 5);
CHECK_ERROR_PARAMS("315", 0, 3);
RECV(":server 315 alice");
CHECK_ERROR_ARGS("315", 3, 5);
CHECK_ERROR_PARAMS("315", 1, 3);
RECV(":server 315 alice #test");
CHECK_ERROR_ARGS("315", 4, 5);
CHECK_ERROR_PARAMS("315", 2, 3);
RECV(":server 315 alice #test End of /WHO list.");
CHECK_SRV("-- [#test] End of /WHO list.");