From 3479532178c73ae47da4729865e5bfc91a299027 Mon Sep 17 00:00:00 2001 From: Peter Powell Date: Wed, 12 Sep 2012 16:27:59 +0100 Subject: Fix for #268. - Move color stripping code to helperfuncs. - Strip color codes before matching filters. --- include/inspircd.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include/inspircd.h') diff --git a/include/inspircd.h b/include/inspircd.h index 69c8bf47f..cb4f1558f 100644 --- a/include/inspircd.h +++ b/include/inspircd.h @@ -705,6 +705,11 @@ class CoreExport InspIRCd * @return True i the mask is valid */ bool IsValidMask(const std::string &mask); + + /** Strips all color codes from the given string + * @para sentence The string to strip from + */ + static void StripColor(std::string &sentence); /** Rehash the local server */ -- cgit v1.2.3