1
0
mirror of https://github.com/anope/anope.git synced 2026-06-29 11:36:38 +02:00

Fix broken handling of colour codes in LineWrapper.

Closes #504.
This commit is contained in:
Sadie Powell
2025-04-27 13:01:29 +01:00
parent c11638db98
commit 551f3504c8
+2 -2
View File
@@ -375,7 +375,7 @@ bool LineWrapper::GetLine(Anope::string &out)
}
}
auto color = text.substr(start, start - idx);
auto color = text.substr(start, idx - start + 1);
toggle_formatting(color);
out.append(color);
break;
@@ -392,7 +392,7 @@ bool LineWrapper::GetLine(Anope::string &out)
break;
}
auto color = text.substr(start, start - idx);
auto color = text.substr(start, idx - start + 1);
toggle_formatting(color);
out.append(color);
}