summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
Diffstat (limited to 'data')
-rw-r--r--data/modules.example.conf21
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)