|−|Using ChanServ's MLOCK : |+|
|−| <@FiXato-AFK> ? mlock |+|
ChanServ's MLOCK you or .
|−| * [WatchdoG:#help] mlock == Sets the mode-lock parameter for the channel. | |
|−| ChanServ allows you to define certain channel modes to be always on, off or free to be either on or off. | |
| || |
msg ChanServ SET # channel MLOCK modes |+|
/SET #MLOCK modes
have to be replaced by the modes you want to be either locked on or of, for example +ntS-lips |+|
Where modesto be replaced the modes you want to +ntS-lips
| || |
|−| /msg ChanServ SET #channel MLOCK +ntsk myKey |+|
lock the modes n, t , s and k with key myKey.<br /> |+|
n = no external messages, t = only operators may change topics, s = secret, k = key) '' |+|
to the t
remove the mlocks, just do the command again without parameters or limited parameters, e.g.: |+|
to the command:
| || |
|−| / msg ChanServ SET #channel MLOCK + |+|
|−|to unset all MLOCK modes |+|
| || |
msg ChanServ SET # channel MLOCK +nt |+|
set the default MLOCK modes. |+|
| || |
|−|You can also force modes not to be allowed on your channel by using a - sign instead of a + sign: |+|
|−| /msg ChanServ SET #channel MLOCK -s |+|
a +ChanServ channel
't the to be to .
|−|won't allow the channel to be set to secret mode. | |
|−|Created: [[User:FiXato|FiXato]] 14:50, 3 May 2006 (CEST)<br /> | |
|−|Last Modified: [[User:FiXato|FiXato]] 14:55, 3 May 2006 (CEST) | |
Revision as of 21:30, 27 January 2011
With ChanServ's MLOCK (Mode Lock) setting you can permanently enable or disable specific channelmodes.
/CHANSERV SET #replaceWithYourChannelname MLOCK modes
Where modes needs to be replaced with the modes you want to permanently enable/disable. For instance the modes +ntS-lips
For instance, if we want to set the following permanent modes on channel #coffeecorner:
- no messages allowed from outside the channel (channelmode n)
- only operators are allowed to change the Topic (channelmode t)
- the channel can never be set to secret (channelmode s) or private (channelmode p)
- the invite-only mode can never be applied (channelmode i)
- the channelkey 'milkAndCookies' is always set (channelmode k)
then we need to use the following command:
/CHANSERV SET #coffeecorner MLOCK -spi+ntk milkAndCookies
Explanation of plus and minus
With a plus-sign (+) in front of the modes, you indicate that the modes always need to be active (and thus can't be disabled without changing the MLock).
With a minus-sign (-) in front of the modes, you will get the opposite result: when set with MLock, you prevent those modes from being set with /mode till you've changed the MLock again. For instance it prevents a random operator from (accidentally) setting your channel invite-only.
Remove an MLock
To remove this MLock, you have to use the same command, without adding modes:
/CHANSERV SET #coffeecorner MLOCK +
However, this will also remove the default MLocked modes +nt, so if you want to go back to the standard MLock settings, you can better use this command:
/CHANSERV SET #coffeecorner MLOCK +n
About locking channelmode +k (channelkey)
Please note that even though setting a channelmode +k in ChanServ MLock will always set the channelkey once the channel gets created, it doesn't prevent the first person from entering that channel without a key.
If the channel is empty, the channel key is not needed to enter, since the channel effectively doesn't exist at that point and thus has no key mode set. This can be worked around by requesting the ChannelKeeper bot to be added to your channel to keep the channel open just for this situation.