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

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

This commit is contained in:
Sébastien Helleu
2021-10-15 21:05:54 +02:00
parent 76b75ad5cd
commit efecdf5d45
2 changed files with 13 additions and 6 deletions
+3 -3
View File
@@ -2288,11 +2288,11 @@ TEST(IrcProtocolWithServer, 303)
{
SRV_INIT;
/* not enough arguments */
/* not enough parameters */
RECV(":server 303");
CHECK_ERROR_ARGS("303", 2, 4);
CHECK_ERROR_PARAMS("303", 0, 2);
RECV(":server 303 alice");
CHECK_ERROR_ARGS("303", 3, 4);
CHECK_ERROR_PARAMS("303", 1, 2);
RECV(":server 303 alice :nick1 nick2");
CHECK_SRV("-- Users online: nick1 nick2");