summaryrefslogtreecommitdiff
path: root/src/helperfuncs.cpp
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2015-12-29 12:40:20 +0100
committerAttila Molnar <attilamolnar@hush.com>2015-12-29 12:40:20 +0100
commitb8c3f13887711c5d260b66e1bdedfebd7b8d1626 (patch)
tree9b25986970b4a81fec46dee00b1b2bede84207d6 /src/helperfuncs.cpp
parent934ca973157d8f9085cd16ad7bb4f60e697a9748 (diff)
Fix InspIRCd::StripColor() stripping characters that shouldn't be stripped
Diffstat (limited to 'src/helperfuncs.cpp')
-rw-r--r--src/helperfuncs.cpp2
1 files changed, 1 insertions, 1 deletions
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;