mirror of
https://github.com/weechat/weechat.git
synced 2026-07-01 23:36:37 +02:00
irc: use parsed command parameters in "333" command callback
This commit is contained in:
@@ -2835,13 +2835,13 @@ TEST(IrcProtocolWithServer, 333)
|
||||
{
|
||||
SRV_INIT_JOIN;
|
||||
|
||||
/* not enough arguments */
|
||||
/* not enough parameters */
|
||||
RECV(":server 333");
|
||||
CHECK_ERROR_ARGS("333", 2, 5);
|
||||
CHECK_ERROR_PARAMS("333", 0, 3);
|
||||
RECV(":server 333 alice");
|
||||
CHECK_ERROR_ARGS("333", 3, 5);
|
||||
CHECK_ERROR_PARAMS("333", 1, 3);
|
||||
RECV(":server 333 alice #test");
|
||||
CHECK_ERROR_ARGS("333", 4, 5);
|
||||
CHECK_ERROR_PARAMS("333", 2, 3);
|
||||
|
||||
RECV(":server 333 alice #test nick!user@host");
|
||||
CHECK_NO_MSG;
|
||||
|
||||
Reference in New Issue
Block a user