From 14b198f5f6bcc5d83bdde72ea78ea70ea2133727 Mon Sep 17 00:00:00 2001 From: aquanight Date: Fri, 5 Sep 2008 18:58:55 +0000 Subject: Make it possible to retrieve the original string from a given regex object, so it can be displayed in, eg, /stats (for filter/rline for example)). git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10397 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/extra/m_regex.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/modules/extra/m_regex.h b/src/modules/extra/m_regex.h index cffb94cbd..441d1c0df 100644 --- a/src/modules/extra/m_regex.h +++ b/src/modules/extra/m_regex.h @@ -34,6 +34,11 @@ public: } virtual bool Matches(const std::string& text) = 0; + + const std::string& GetRegexString() const + { + return regex_string; + } }; class RegexFactoryRequest : public Request -- cgit v1.2.3