The "noctcp" Module (v3)
Description
This module adds channel mode C
(noctcp) which allows channels to block messages which contain CTCPs and user mode T
(u_noctcp) which allows users to block private messages that contain CTCPs.
Configuration
To load this module use the following <module>
tag:
<module name="noctcp">
<noctcp>
The <noctcp>
tag defines settings about how the noctcp module should behave. This tag can only be defined once.
Name | Type | Default Value | Description |
---|---|---|---|
enableumode | Boolean | No | Whether user mode T (u_noctcp) is enabled. You must restart after changing this setting for it to be applied. |
Example Usage
<noctcp enableumode="yes">
<class>
This module extends the core <class:privs>
field with the following values:
Name | Description |
---|---|
channels/ignore-noctcp | Allows server operators to send a CTCP to a channel with the C (noctcp) mode set. |
users/ignore-noctcp | Allows server operators to send a CTCP to a user with the T (u_noctcp) mode set. |
Example Usage
Allows server operators with the class named BasicOper to send a CTCP to a channel or user with the respective mode set.
<class name="BasicOper"
...
privs="... channels/ignore-noctcp users/ignore-noctcp ...">
Channel Modes
Name | Character | Type | Parameter Syntax | Usable By | Description |
---|---|---|---|---|---|
noctcp | C | Switch | None | Channel operators | Enables blocking channel messages that contain CTCPs. |
User Modes
Name | Character | Type | Parameter Syntax | Usable By | Description |
---|---|---|---|---|---|
u_noctcp | T | Switch | None | Anyone | Enables blocking private messages that contain CTCPs. |
Exemptions
Name | Description |
---|---|
noctcp | Allows exempted users to send messages that contain CTCPs. |
Extended Bans
Name | Character | Type | Ban Syntax | Description |
---|---|---|---|---|
noctcp | C | Acting | C:<mask> | Bans <mask> from sending messages that contain CTCPs. |
Example Usage
Bans users matching *!*@example.com
from sending messages that contain CTCPs:
/MODE #channel +b C:*!*@example.com
Special Notes
Actions (i.e. /ME) use a CTCP internally but are not blocked by this module.