From 30f64f9225f9bdb26f173b4e22bfcbd408ea87d7 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Wed, 15 Jun 2022 22:08:39 +0100 Subject: Fix the parameter documentation for the repeat mode. --- src/modules/m_repeat.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/modules/m_repeat.cpp b/src/modules/m_repeat.cpp index d341080d2..158ab8889 100644 --- a/src/modules/m_repeat.cpp +++ b/src/modules/m_repeat.cpp @@ -134,7 +134,7 @@ class RepeatMode : public ParamMode > : ParamMode >(Creator, "repeat", 'E') , MemberInfoExt("repeat_memb", ExtensionItem::EXT_MEMBERSHIP, Creator) { - syntax = "[~|*]:[:][:]"; + syntax = "[~|*]:[:][:]"; } void OnUnset(User* source, Channel* chan) CXX11_OVERRIDE -- cgit v1.3.1-10-gc9f91 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. --- docs/conf/inspircd.conf.example | 1 + src/helperfuncs.cpp | 1 + 2 files changed, 2 insertions(+) (limited to 'src') diff --git a/docs/conf/inspircd.conf.example b/docs/conf/inspircd.conf.example index bd5a6050f..b100a212f 100644 --- a/docs/conf/inspircd.conf.example +++ b/docs/conf/inspircd.conf.example @@ -366,6 +366,7 @@ # used in your MOTD: # Bold: \b # Color: \c[,] + # Hex Color: \h[,] # Italic: \i # Monospace: \m (not widely supported) # Reset: \x 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 From a667bd3e988e73ebb10ef343bac7127d8bbd6f49 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Mon, 20 Jun 2022 00:41:16 +0100 Subject: Also add hex colour escapes to the formatting entity list. --- src/configparser.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/configparser.cpp b/src/configparser.cpp index 96965ddc8..e4582f80d 100644 --- a/src/configparser.cpp +++ b/src/configparser.cpp @@ -531,6 +531,8 @@ ParseStack::ParseStack(ServerConfig* conf) vars["irc.bold"] = "\x02"; vars["irc.color"] = "\x03"; vars["irc.colour"] = "\x03"; + vars["irc.hexcolor"] = "\x04"; + vars["irc.hexcolour"] = "\x04"; vars["irc.italic"] = "\x1D"; vars["irc.monospace"] = "\x11"; vars["irc.reset"] = "\x0F"; -- cgit v1.3.1-10-gc9f91