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

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

This commit is contained in:
Sébastien Helleu
2021-10-16 18:55:13 +02:00
parent 6a8ec55118
commit 6124bf3c92
2 changed files with 20 additions and 14 deletions
+4 -4
View File
@@ -3863,13 +3863,13 @@ TEST(IrcProtocolWithServer, 729)
{
SRV_INIT_JOIN;
/* not enough arguments */
/* not enough parameters */
RECV(":server 729");
CHECK_ERROR_ARGS("729", 2, 5);
CHECK_ERROR_PARAMS("729", 0, 3);
RECV(":server 729 alice");
CHECK_ERROR_ARGS("729", 3, 5);
CHECK_ERROR_PARAMS("729", 1, 3);
RECV(":server 729 alice #test");
CHECK_ERROR_ARGS("729", 4, 5);
CHECK_ERROR_PARAMS("729", 2, 3);
RECV(":server 729 alice #test q");
CHECK_CHAN("-- [#test]");