aboutsummaryrefslogtreecommitdiffstats
path: root/src/helperfuncs.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2024-08-30 09:32:44 +0100
committerGravatar Sadie Powell2024-08-30 09:32:44 +0100
commitaf6a690f52e24dbf628ff7f65294e5612905696a (patch)
tree4f62452ef5ba0a3c1031325e916925d5655fc9dc /src/helperfuncs.cpp
parentAllow using color codes by name in MOTD files. (diff)
Add MOTD escape sequences for { and }.
Diffstat (limited to 'src/helperfuncs.cpp')
-rw-r--r--src/helperfuncs.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/helperfuncs.cpp b/src/helperfuncs.cpp
index 373531b80..0397b485c 100644
--- a/src/helperfuncs.cpp
+++ b/src/helperfuncs.cpp
@@ -129,6 +129,8 @@ void InspIRCd::ProcessColors(std::string& line)
{
static const insp::flat_map<std::string::value_type, std::string> formats = {
{ '\\', "\\" }, // Escape
+ { '{', "{" }, // Escape
+ { '}', "}" }, // Escape
{ 'b', "\x02" }, // Bold
{ 'c', "\x03" }, // Color
{ 'h', "\x04" }, // Hex Color