Advanced ChanServ: Channel Mode Locking

Introduction

ChanServ allows you to define certain channel modes to be always on (or off). The modes that can be locked are i, k, l, m, n, p, s, and t; each of these modes can be locked on, locked off, or not locked.

For more information about channel modes see ChannelModes/Standard.

Basic Syntax

/msg ChanServ SET <#channel> MLOCK <mode>

Always Locked mode/s Syntax:

Example: /msg ChanServ SET <#channel> MLOCK +i         (Forces the channel to always be invite-only)
         /msg ChanServ SET <#channel> MLOCK +ip        (Forces the channel to always be invite-only and private)
         /msg ChanServ SET <#channel> MLOCK +k <pass>  (Forces the channel to require the key "Pass" to enter)

Always Unlock mode/s Syntax:

Example: /msg ChanServ SET <#channel> MLOCK -i         (Forces the channel to never be invite-only)
         /msg ChanServ SET <#channel> MLOCK -ip        (Forces the channel to never be invite-only and private) 

Combination Lock/Unlock mode/s Syntax:

Example: /msg ChanServ SET <#channel> MLOCK -i+p       (Forces the channel to never be invite-only and always private )
          

To remove all locked modes, use this command:

/msg ChanServ SET <#channel> MLOCK +