From 48fbd51151a9bf474900a6eba172ee23619c9497 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Sun, 19 Jun 2022 21:40:25 +0100 Subject: Add support for escaping hex colour codes This is not widely supported but we should have an escape regardless. --- src/helperfuncs.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/helperfuncs.cpp') 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 -- cgit v1.3.1-10-gc9f91