Difference between revisions of "MLock"

From Chat4AllFAQ
Jump to: navigation, search
m (Moved from Mlock)
 
m (About locking channelmode +k (channelkey): Exanded +k explanation with an example that retains the default mlock modes.)
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
Using ChanServ's MLOCK:
+
[[Category:EN]]
  <@FiXato-AFK> ? mlock
+
= Intro =
  * [WatchdoG:#help] mlock == Sets the mode-lock parameter for the channel.
+
With ChanServ's MLOCK (Mode Lock) setting you can permanently enable or disable specific channelmodes.
  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<br />
 +
''Note that the modes you set here won't add to existing locked modes, but instead will '''replace''' the existing locked modes.''
  
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 +nt
  
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.
  
won't allow the channel to be set to secret mode.  
+
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 Network Staff to add the ChannelKeeper bot to your channel to keep the channel open just for this situation.
  
Created: [[User:FiXato|FiXato]] 14:50, 3 May 2006 (CEST)<br />
+
Also, note that if you want to *add* +k to your MLOCKed modes, that you shouldn't forget to include the existing MLOCKed modes.
Last Modified: [[User:FiXato|FiXato]] 14:55, 3 May 2006 (CEST)
+
In case of the default MLOCK modes +nt this would be:
 +
  /CHANSERV SET #coffeecorner MLOCK +ntk milkandsugar
 +
This would set the channelkey for channel #coffeecorner to be 'milkandsugar', while also retaining the default modes +n (block external messages) and +t (topic only settable by operators).

Latest revision as of 15:35, 19 September 2012

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
Note that the modes you set here won't add to existing locked modes, but instead will replace the existing locked modes.

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 +nt

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 Network Staff to add the ChannelKeeper bot to your channel to keep the channel open just for this situation.

Also, note that if you want to *add* +k to your MLOCKed modes, that you shouldn't forget to include the existing MLOCKed modes. In case of the default MLOCK modes +nt this would be:

 /CHANSERV SET #coffeecorner MLOCK +ntk milkandsugar

This would set the channelkey for channel #coffeecorner to be 'milkandsugar', while also retaining the default modes +n (block external messages) and +t (topic only settable by operators).