diff options
| author | Adam <Adam@anope.org> | 2011-10-21 00:21:34 -0400 |
|---|---|---|
| committer | Adam <Adam@anope.org> | 2011-10-21 00:21:34 -0400 |
| commit | d0afc8c50992ae4a8e03bdbd0b8c0b543db353e0 (patch) | |
| tree | 04d4f111af41da2b3e219aa19428797c95182ae9 /data | |
| parent | 230b3bc8849d928795839ea22b4d2ae824dfb587 (diff) | |
Added m_rewrite
Diffstat (limited to 'data')
| -rw-r--r-- | data/modules.example.conf | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/data/modules.example.conf b/data/modules.example.conf index e03761fb2..715be1898 100644 --- a/data/modules.example.conf +++ b/data/modules.example.conf @@ -311,6 +311,27 @@ sqlite } /* + * m_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 = "CLEARUSERS $1" +} + +/* * m_ssl * * This module uses SSL to connect to the uplink server(s) |
