InspIRCd Modes
InspIRCd supports five types of mode:
| Type | Parameter when adding? | Parameter when removing? | Can be set multiple times? | Description |
|---|---|---|---|---|
| Switch | No | No | No | Toggles the behaviour of a feature on a channel or user. |
| Parameter | Yes | No | No | Enables and configures the behaviour of a feature on a channel or user. |
| ParamBoth | Yes | Yes | No | The same as a Parameter mode only the parameter must be specified to remove it. |
| Prefix | Yes; channel member nickname | Yes; channel member nickname | Yes; once per channel member | Grants/revokes a status rank to the user specified in the parameter. |
| List | Yes | Yes | Yes; up to the maximum list size | Adds/removes entries from a list. |
Channel Modes
This page only lists core channel modes. For details on the channel modes of a specific module please refer to the appropriate page for that module.
| Name | Character | Type | Parameter Syntax | Usable By | Description |
|---|---|---|---|---|---|
| ban | b | List | <mask> | Channel operators | Bans users matching <mask> from joining the channel. |
| inviteonly | i | Switch | None | Channel operators | Prevents users from joining the channel without an invite. |
| key | k | ParamBoth | <key> | Channel operators | Prevents users from joining the channel who have not specified the <key> password. |
| limit | l | Parameter | <count> | Channel operators | Allows no more than <count> users to join the channel. |
| moderated | m | Switch | None | Channel operators | Prevents users without a prefix rank from messaging the channel. |
| noextmsg | n | Switch | None | Channel operators | Prevents users who are not in the channel from messaging the channel. |
| op | o | Prefix | <nick> | Channel operators | Grants channel operator status to <nick>. |
| private | p | Switch | None | Channel operators | Hides the channel in /WHOIS from people who are not a member. You probably want the s (secret) channel mode rather than this. |
| secret | s | Switch | None | Channel operators | Hides the channel in /WHOIS and /LIST from people who are not a member. |
| topiclock | t | Switch | None | Channel operators | Prevents non-channel operators from changing the channel topic. |
| voice | v | Prefix | <nick> | Channel operators | Grants channel voice status to <nick>. |
Example Usage
Bans users matching *!*@example.com from joining #channel:
/MODE #channel +b *!*@example.com
Sets the channel key for #cheese to "cheddar":
/MODE #channel +k cheddar
Removes the channel key for #cheese:
/MODE #channel -k cheddar
Limits #channel to 100 users:
/MODE #channel +l 100
Grants channel operator status to Sadie in #channel:
/MODE #channel +o Sadie
Removes channel operator status from Sadie in #channel:
/MODE #channel -o Sadie
Grants channel voice status to Sadie in #channel:
/MODE #channel +v Sadie
Removes channel voice status from Sadie in #channel:
/MODE #channel -v Sadie
User Modes
This page only lists core user modes. For details on the user modes of a specific module please refer to the appropriate page for that module.
| Name | Character | Type | Parameter Syntax | Usable By | Description |
|---|---|---|---|---|---|
| invisible | i | Switch | None | Anyone | Marks the user as invisible. |
| oper | o | Switch | None | Server operators | Marks the user as a server operator (can only be set by the server). |
| snomask | s | Parameter | (+|-)<snomasks> | Server operators | Enables receiving the specified types of server operator notice. |
| wallops | w | Switch | None | Anyone | Enables receiving /WALLOPS messages from server operators. |
Example Usage
Enables snomasks l (LINK) and L (REMOTELINK) and disables snomask d (DEBUG):
/MODE YourNick +s +lL-d
Enables all available snomasks:
/MODE YourNick +s +*
Disables all enabled snomasks:
/MODE YourNick -s