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 "317" command callback

This commit is contained in:
Sébastien Helleu
2021-10-16 09:36:38 +02:00
parent a1a4f337ff
commit 4e1d40034e
2 changed files with 14 additions and 14 deletions
+5 -5
View File
@@ -2530,15 +2530,15 @@ TEST(IrcProtocolWithServer, 317)
SRV_INIT;
/* not enough arguments */
/* not enough parameters */
RECV(":server 317");
CHECK_ERROR_ARGS("317", 2, 6);
CHECK_ERROR_PARAMS("317", 0, 4);
RECV(":server 317 alice");
CHECK_ERROR_ARGS("317", 3, 6);
CHECK_ERROR_PARAMS("317", 1, 4);
RECV(":server 317 alice bob");
CHECK_ERROR_ARGS("317", 4, 6);
CHECK_ERROR_PARAMS("317", 2, 4);
RECV(":server 317 alice bob 122877");
CHECK_ERROR_ARGS("317", 5, 6);
CHECK_ERROR_PARAMS("317", 3, 4);
/* signon at 03/12/2008 @ 1:18pm (UTC) */
RECV(":server 317 alice bob 122877 1205327880");