summaryrefslogtreecommitdiff
path: root/src/modules/extra
diff options
context:
space:
mode:
authoraquanight <aquanight@e03df62e-2008-0410-955e-edbf42e46eb7>2008-09-05 18:58:55 +0000
committeraquanight <aquanight@e03df62e-2008-0410-955e-edbf42e46eb7>2008-09-05 18:58:55 +0000
commit14b198f5f6bcc5d83bdde72ea78ea70ea2133727 (patch)
tree5ce6441e612b984d095570ca9a767d6e41c65aab /src/modules/extra
parentb70bef06e7a8a985a15a730c7cadba2403c09d29 (diff)
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
Diffstat (limited to 'src/modules/extra')
-rw-r--r--src/modules/extra/m_regex.h5
1 files changed, 5 insertions, 0 deletions
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