mirror of
https://github.com/weechat/weechat.git
synced 2026-07-03 00:03:12 +02:00
irc: add message 742 (mode cannot be set)
This commit is contained in:
@@ -4428,6 +4428,33 @@ TEST(IrcProtocolWithServer, 734)
|
||||
CHECK_SRV("=!= Monitor list is full (10)");
|
||||
}
|
||||
|
||||
/*
|
||||
* Tests functions:
|
||||
* irc_protocol_cb_742 (mode cannot be set)
|
||||
*/
|
||||
|
||||
TEST(IrcProtocolWithServer, 742)
|
||||
{
|
||||
SRV_INIT_JOIN;
|
||||
|
||||
/* not enough parameters */
|
||||
RECV(":server 742");
|
||||
CHECK_ERROR_PARAMS("742", 0, 2);
|
||||
RECV(":server 742 alice");
|
||||
CHECK_ERROR_PARAMS("742", 1, 2);
|
||||
|
||||
RECV(":server 742 alice #test");
|
||||
CHECK_SRV("-- #test");
|
||||
RECV(":server 742 alice #test n nstlk :MODE cannot be set due to channel "
|
||||
"having an active MLOCK restriction policy");
|
||||
CHECK_CHAN("-- #test: n nstlk MODE cannot be set due to channel having "
|
||||
"an active MLOCK restriction policy");
|
||||
RECV(":server 742 alice #test2 n nstlk :MODE cannot be set due to channel "
|
||||
"having an active MLOCK restriction policy");
|
||||
CHECK_SRV("-- #test2: n nstlk MODE cannot be set due to channel having "
|
||||
"an active MLOCK restriction policy");
|
||||
}
|
||||
|
||||
/*
|
||||
* Tests functions:
|
||||
* irc_protocol_cb_900 (logged in as (SASL))
|
||||
|
||||
Reference in New Issue
Block a user