From 0e603bab1d953c947f7c5c39e9d441eaeaaebcfe Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Sat, 31 Aug 2024 15:41:35 +0100 Subject: Minor performance improvement to ProcessColors. --- src/helperfuncs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/helperfuncs.cpp') diff --git a/src/helperfuncs.cpp b/src/helperfuncs.cpp index 34ef2cee3..8ee71a4df 100644 --- a/src/helperfuncs.cpp +++ b/src/helperfuncs.cpp @@ -230,7 +230,7 @@ void InspIRCd::ProcessColors(std::string& line) size_t bgend = std::string::npos; if (line[fgend] == ',') { - bgend = line.find_first_of("}", fgend + 1); + bgend = line.find_first_of('}', fgend + 1); if (bgend == std::string::npos) { // Malformed color value, strip. -- cgit v1.3.1-10-gc9f91