diff options
| author | 2024-08-30 09:32:44 +0100 | |
|---|---|---|
| committer | 2024-08-30 09:32:44 +0100 | |
| commit | af6a690f52e24dbf628ff7f65294e5612905696a (patch) | |
| tree | 4f62452ef5ba0a3c1031325e916925d5655fc9dc /src/helperfuncs.cpp | |
| parent | Allow 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.cpp | 2 |
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 |
