summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2012-09-12 16:27:59 +0100
committerattilamolnar <attilamolnar@hush.com>2012-10-19 17:50:08 +0200
commit3479532178c73ae47da4729865e5bfc91a299027 (patch)
treeb696e2420e8b7fdefb78fdd9ae62559d0be43c1b /include
parentaa1f46885810c4779ae539c142fdee15b556206b (diff)
Fix for #268.
- Move color stripping code to helperfuncs. - Strip color codes before matching filters.
Diffstat (limited to 'include')
-rw-r--r--include/inspircd.h5
1 files changed, 5 insertions, 0 deletions
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
*/