From 7d7ca934b362a6b59617cd27125940e480a37ca6 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Tue, 10 Feb 2026 21:58:04 +0000 Subject: [PATCH] Fix some places that weren't updated for the new nbsp character. --- docs/LANGUAGE | 2 +- include/anope.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/LANGUAGE b/docs/LANGUAGE index 744285f34..f324721e9 100644 --- a/docs/LANGUAGE +++ b/docs/LANGUAGE @@ -29,7 +29,7 @@ Anope Multi Language Support po files (especially on Windows). There are several control characters within the messages. These are mostly IRC formatting codes (https://modern.ircdocs.horse/formatting) - but 0x1A is special to Anope and is used to prevent the automatic linewrapper from breaking messages in the middle of + but 0x1B is special to Anope and is used to prevent the automatic linewrapper from breaking messages in the middle of text that should not be split (e.g. commands). Your editor may not show these so be careful you don't delete them! If you have finished a language file translation and you want others to use it, please file a pull request on GitHub diff --git a/include/anope.h b/include/anope.h index 3137e962b..c268f9599 100644 --- a/include/anope.h +++ b/include/anope.h @@ -230,12 +230,12 @@ namespace Anope inline bool is_pos_number_only() const { return this->find_first_not_of("0123456789.") == npos; } /** - * In IRC messages we use a substitute (ASCII 0x1A) instead of a space + * In IRC messages we use a substitute (ASCII 0x1B) instead of a space * (ASCII 0x20) so it doesn't get line wrapped when put into a message. * The line wrapper will convert this to a space before it is sent to * clients. */ - inline Anope::string nobreak() const { return this->replace_all_cs("\x20", "\x1A"); } + inline Anope::string nobreak() const { return this->replace_all_cs("\x20", "\x1B"); } /** * Replace parts of the string.