1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-06 01:33:12 +02:00

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

This commit is contained in:
Sébastien Helleu
2021-10-15 20:00:07 +02:00
parent 033fbf63b0
commit 12a4519448
2 changed files with 18 additions and 16 deletions
+3 -3
View File
@@ -2141,11 +2141,11 @@ TEST(IrcProtocolWithServer, 221)
{
SRV_INIT;
/* not enough arguments */
/* not enough parameters */
RECV(":server 221");
CHECK_ERROR_ARGS("221", 2, 4);
CHECK_ERROR_PARAMS("221", 0, 2);
RECV(":server 221 alice");
CHECK_ERROR_ARGS("221", 3, 4);
CHECK_ERROR_PARAMS("221", 1, 2);
POINTERS_EQUAL(NULL, ptr_server->nick_modes);