aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Sadie Powell2024-11-27 10:36:52 +0000
committerGravatar Sadie Powell2024-11-27 10:36:52 +0000
commitaf95088ae39f9a0020dcbac0531f1ab82a273181 (patch)
tree1068160fc80c270fcad69115fe4becb7f0963073
parentAdd a link to the TLS tutorial to the error about building with (diff)
Fix stripping adjacent formatting codes.
-rw-r--r--src/helperfuncs.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/helperfuncs.cpp b/src/helperfuncs.cpp
index bbb8ad668..b9ddd2767 100644
--- a/src/helperfuncs.cpp
+++ b/src/helperfuncs.cpp
@@ -117,6 +117,7 @@ void InspIRCd::StripColor(std::string& line)
break;
}
line.erase(start, idx - start);
+ idx = start;
break;
}
case '\x04': // Hex Color
@@ -129,6 +130,7 @@ void InspIRCd::StripColor(std::string& line)
break;
}
line.erase(start, idx - start);
+ idx = start;
break;
}