aboutsummaryrefslogtreecommitdiffstats
path: root/src/helperfuncs.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2022-06-19 21:40:25 +0100
committerGravatar Sadie Powell2022-06-19 21:40:25 +0100
commit48fbd51151a9bf474900a6eba172ee23619c9497 (patch)
treed833bfbdad7bb014a62ae9d171a5ca36d35f6785 /src/helperfuncs.cpp
parentFix the parameter documentation for the repeat mode. (diff)
downloadinspircd++-48fbd51151a9bf474900a6eba172ee23619c9497.tar.gz
inspircd++-48fbd51151a9bf474900a6eba172ee23619c9497.tar.bz2
inspircd++-48fbd51151a9bf474900a6eba172ee23619c9497.zip
Add support for escaping hex colour codes
This is not widely supported but we should have an escape regardless.
Diffstat (limited to 'src/helperfuncs.cpp')
-rw-r--r--src/helperfuncs.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/helperfuncs.cpp b/src/helperfuncs.cpp
index 74c72e744..28ed4128c 100644
--- a/src/helperfuncs.cpp
+++ b/src/helperfuncs.cpp
@@ -158,6 +158,7 @@ void InspIRCd::ProcessColors(file_cache& input)
} special[] = {
special_chars("\\b", "\x02"), // Bold
special_chars("\\c", "\x03"), // Color
+ special_chars("\\h", "\x04"), // Hex Color
special_chars("\\i", "\x1D"), // Italic
special_chars("\\m", "\x11"), // Monospace
special_chars("\\r", "\x16"), // Reverse