From 3850b073ddf610415de54dced9ff134397779676 Mon Sep 17 00:00:00 2001 From: Adam Date: Wed, 22 Feb 2012 18:12:02 -0500 Subject: Added regex support for many commands, such as akill, sqline, snline, all of the */list commands, etc. Also extended the ability of akill to match a full nick!user@host and real name of users. --- data/example.conf | 7 +++++++ data/modules.example.conf | 22 ++++++++++++++++++++++ 2 files changed, 29 insertions(+) (limited to 'data') diff --git a/data/example.conf b/data/example.conf index 73c6627a3..a746051c0 100644 --- a/data/example.conf +++ b/data/example.conf @@ -498,6 +498,13 @@ options * If set, Services do not allow ownership of nick names, only ownership of accounts. */ nonicknameownership = no + + /* The regex engine to use, as provided by the regex modules. + * Leave commented to disable regex matching. + * + * Note for this to work the regex module providing the regex engine must be loaded. + */ + regexengine = "regex/pcre" } /* diff --git a/data/modules.example.conf b/data/modules.example.conf index 715be1898..101437d04 100644 --- a/data/modules.example.conf +++ b/data/modules.example.conf @@ -310,6 +310,28 @@ sqlite database = "anope.db" } +/* + * m_regex_pcre + * + * Provides the regex engine regex/pcre, which uses the Perl Compatible Regular Expressions library. + */ +module { name = "m_regex_pcre" } + +/* + * m_regex_posix + * + * Provides the regex engine regex/posix, which uses the POSIX compliant regular expressions. + * This is likely the only regex module you will not need extra libraries for. + */ +#module { name = "m_regex_posix" } + +/* + * m_regex_tre + * + * Provides the regex engine regex/tre, which uses the TRE regex library. + */ +#module { name = "m_regex_tre" } + /* * m_rewrite * -- cgit