diff options
Diffstat (limited to 'data/modules.example.conf')
| -rw-r--r-- | data/modules.example.conf | 41 |
1 files changed, 26 insertions, 15 deletions
diff --git a/data/modules.example.conf b/data/modules.example.conf index 0bc9d99b8..ce864f4f9 100644 --- a/data/modules.example.conf +++ b/data/modules.example.conf @@ -500,23 +500,34 @@ module { name = "m_regex_pcre" } /* * m_rewrite * + * Provides the command rewrite. + * * Allows rewriting commands sent to clients. */ -#module { name = "m_rewrite" } -rewrite -{ - /* The client to apply this rewrite to. */ - client = "ChanServ" - - /* Source message to match. A $ can be used to match anything. */ - source_message = "CLEAR $ USERS" - - /* - * Message to rewrite the source message to. A $ followed by a number, eg $0, gets - * replaced by the number-th word from the source_message, starting from 0. - */ - target_message = "KICK $1 *" -} +module { name = "m_rewrite" } +#command +#{ +# service = "ChanServ"; name = "CLEAR"; command = "rewrite" +# +# /* Enable m_rewrite */ +# rewrite = true +# +# /* Source message to match. A $ can be used to match anything. */ +# rewrite_source = "CLEAR $ USERS" +# +# /* +# * Message to rewrite the source message to. A $ followed by a number, eg $0, gets +# * replaced by the number-th word from the source_message, starting from 0. +# */ +# rewrite_target = "KICK $1 *" +# +# /* +# * The command description. This only shows up in HELP's output. +# * Comment this option to prevent the command from showing in the +# * HELP command. +# */ +# rewrite_description = "Clears all users from a channel" +#} /* * m_ssl |
