LYNXNET.ORG
Internet Relay Chat
irc.lynxnet.org
Syntax: SET channel MLOCK modes
Sets the mode-lock parameter for the channel. ChanServ allows you to define certain channel modes to be always on (or off). All binary modes (n, s, t, k, l, and so on) can be locked; each mode can be locked on, locked off, or not locked. The modes parameter is constructed exactly the same way as a /MODE command; that is, modes followed by a + are locked on, and modes followed by a - are locked off.
Warning: If you set a mode-locked key, as in the second example below, you should also set the RESTRICTED option for the channel (see HELP SET RESTRICTED), or anyone entering the channel when it is empty will be able to see the key! MLOCK +i will likewise not prevent users from entering the channel when it is empty without being invited.
Examples:
SET #channel MLOCK +nt-ikl
Forces modes n and t on, and modes i, k, and l off.
All other modes are left free to be either on or off.
SET #channel MLOCK +knst-ilmp my-key
Forces modes k, n, s, and t on, and modes i, l, m, and p off. Also forces the channel key to be "my-key".
SET #channel MLOCK +
Removes the mode lock; all channel modes are free to be either on or off.