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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user