From: Robby Date: Tue, 20 Nov 2018 22:32:19 +0000 (+0100) Subject: Add missing special character for reversing color. X-Git-Url: https://git.netwichtig.de/gitweb/?a=commitdiff_plain;h=4c6d7a12ab58b55ef49fb1cf62b57c6ef7daad5d;p=user%2Fhenk%2Fcode%2Finspircd.git Add missing special character for reversing color. --- diff --git a/docs/conf/inspircd.conf.example b/docs/conf/inspircd.conf.example index 3ad2d5fd6..04100ec2a 100644 --- a/docs/conf/inspircd.conf.example +++ b/docs/conf/inspircd.conf.example @@ -324,6 +324,7 @@ # Italic: \i # Monospace: \m (not widely supported) # Reset: \x + # Reverse: \r # Strikethrough: \s (not widely supported) # Underline: \u # See https://defs.ircdocs.horse/info/formatting.html for more information diff --git a/src/helperfuncs.cpp b/src/helperfuncs.cpp index 9a6701b54..469c844be 100644 --- a/src/helperfuncs.cpp +++ b/src/helperfuncs.cpp @@ -156,6 +156,7 @@ void InspIRCd::ProcessColors(file_cache& input) special_chars("\\c", "\x03"), // Color special_chars("\\i", "\x1D"), // Italic special_chars("\\m", "\x11"), // Monospace + special_chars("\\r", "\x16"), // Reverse special_chars("\\s", "\x1E"), // Strikethrough special_chars("\\u", "\x1F"), // Underline special_chars("\\x", "\x0F"), // Reset