1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-27 21:36:37 +02:00

irc: use parsed command parameters in "305" and "306" command callbacks

This commit is contained in:
Sébastien Helleu
2021-10-15 21:10:00 +02:00
parent efecdf5d45
commit f51f3dbe29
2 changed files with 21 additions and 10 deletions
+3 -2
View File
@@ -2311,10 +2311,11 @@ TEST(IrcProtocolWithServer, 305_306)
RECV(":bob!user@host PRIVMSG alice :hi Alice!");
CHECK_PV("bob", "bob hi Alice!");
/* not enough arguments */
/* not enough parameters */
RECV(":server 305");
CHECK_ERROR_ARGS("305", 2, 3);
CHECK_ERROR_PARAMS("305", 0, 1);
RECV(":server 306");
CHECK_ERROR_PARAMS("306", 0, 1);
POINTERS_EQUAL(NULL, ptr_server->channels->away_message);