diff options
| author | Adam <Adam@anope.org> | 2013-01-08 20:25:01 -0500 |
|---|---|---|
| committer | Adam <Adam@anope.org> | 2013-01-08 20:25:01 -0500 |
| commit | 9931ec299446c3d9e149f91a953748350c38eba6 (patch) | |
| tree | fb3969d5aeb2ce23a7d2cde9fd9e47841b125c4b /data/modules.example.conf | |
| parent | 5f3dfc296041540960f372b010eea623bdd7d335 (diff) | |
Use m_rewrite to rewrite op, deop, halfop, ... etc
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 |
