From d0afc8c50992ae4a8e03bdbd0b8c0b543db353e0 Mon Sep 17 00:00:00 2001 From: Adam Date: Fri, 21 Oct 2011 00:21:34 -0400 Subject: Added m_rewrite --- data/modules.example.conf | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'data') 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 @@ -310,6 +310,27 @@ sqlite database = "anope.db" } +/* + * 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 * -- cgit