1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-30 14:56:39 +02:00

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

This commit is contained in:
Sébastien Helleu
2021-10-15 20:00:43 +02:00
parent 12a4519448
commit 74ceaa1a68
2 changed files with 38 additions and 34 deletions
+2 -2
View File
@@ -2264,9 +2264,9 @@ TEST(IrcProtocolWithServer, 301)
RECV(":bob!user@host PRIVMSG alice :hi Alice!");
CHECK_PV("bob", "bob hi Alice!");
/* not enough arguments */
/* not enough parameters */
RECV(":server 301");
CHECK_ERROR_ARGS("301", 2, 3);
CHECK_ERROR_PARAMS("301", 0, 1);
POINTERS_EQUAL(NULL, ptr_server->channels->away_message);