X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fhelperfuncs.cpp;h=c9135679cfd0e8d6a31d4aeab4b484d1ee0685dd;hb=b96329dc3b775c77e98964c42cb0def7ca65ba0e;hp=6217eb20ba2139ca4e2dfe725a996aa55c2ee0b4;hpb=5b5590f09599c3fca1fd2c2ed9a6908cdd201597;p=user%2Fhenk%2Fcode%2Finspircd.git 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;