diff options
| author | 2024-11-27 10:36:52 +0000 | |
|---|---|---|
| committer | 2024-11-27 10:36:52 +0000 | |
| commit | af95088ae39f9a0020dcbac0531f1ab82a273181 (patch) | |
| tree | 1068160fc80c270fcad69115fe4becb7f0963073 | |
| parent | Add a link to the TLS tutorial to the error about building with (diff) | |
Fix stripping adjacent formatting codes.
| -rw-r--r-- | src/helperfuncs.cpp | 2 |
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; } |
