Difference between revisions of "MLock"

From Chat4AllFAQ
Jump to: navigation, search
m (Moved from Mlock)
 
m (Re-written based on translation from the Dutch MLock article.)
Line 1: Line 1:
Using ChanServ's MLOCK:
+
= Intro =
  <@FiXato-AFK> ? mlock
+
With ChanServ's MLOCK (Mode Lock) setting you can permanently enable or disable specific channelmodes.
  * [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.
 
  
 
Syntax:
 
Syntax:
   /msg ChanServ SET #channel MLOCK modes
+
   /CHANSERV SET #replaceWithYourChannelname MLOCK modes
Where modes have to be replaced by the modes you want to be either locked on or of, for example +ntS-lips
+
Where ''modes'' needs to be replaced with the modes you want to permanently enable/disable. For instance the modes +ntS-lips
  
e.g.
+
= Example =
  /msg ChanServ SET #channel MLOCK +ntsk myKey
+
For instance, if we want to set the following permanent modes on channel #coffeecorner:
to lock the modes n, t, s and k with key myKey.<br />
+
* no messages allowed from outside the channel (channelmode n)
''(n = no external messages, t = only operators may change topics, s = secret, k = key)''
+
* only operators are allowed to change the Topic (channelmode t)
to remove the mlocks, just do the command again without parameters or limited parameters, e.g.:
+
* 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
  
  /msg ChanServ SET #channel MLOCK +
+
= Explanation of plus and minus =
to unset all MLOCK modes
+
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).<br />
 +
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.
  
or:
+
= Remove an MLock =
   /msg ChanServ SET #channel MLOCK +nt
+
To remove this MLock, you have to use the same command, without adding modes:
to set the default MLOCK 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
  
You can also force modes not to be allowed on your channel by using a - sign instead of a + sign:
+
= About locking channelmode +k (channelkey) =
  /msg ChanServ SET #channel MLOCK -s
+
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.
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 20:30, 27 January 2011

Intro

With ChanServ's MLOCK (Mode Lock) setting you can permanently enable or disable specific channelmodes.

Syntax:

 /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

Example

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.