Fix stripping adjacent formatting codes.

This commit is contained in:
Sadie Powell 2024-11-27 10:36:52 +00:00
parent 900bfeb6b7
commit af95088ae3

View File

@ -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;
}