From b8c3f13887711c5d260b66e1bdedfebd7b8d1626 Mon Sep 17 00:00:00 2001 From: Attila Molnar Date: Tue, 29 Dec 2015 12:40:20 +0100 Subject: Fix InspIRCd::StripColor() stripping characters that shouldn't be stripped --- src/helperfuncs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/helperfuncs.cpp b/src/helperfuncs.cpp index 6217eb20b..c9135679c 100644 --- a/src/helperfuncs.cpp +++ b/src/helperfuncs.cpp @@ -128,7 +128,7 @@ void InspIRCd::StripColor(std::string &sentence) seq = 0; // Strip all control codes too except \001 for CTCP - if (seq || ((*i < 32) && (*i != 1))) + if (seq || ((*i >= 0) && (*i < 32) && (*i != 1))) i = sentence.erase(i); else ++i; -- cgit v1.2.3