From f3629598347763c984d03ee70235133c45dd9908 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Tue, 22 Apr 2025 17:36:26 +0100 Subject: Fix splitting in the middle of some command names. --- include/anope.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include') diff --git a/include/anope.h b/include/anope.h index 9c109d9ee..618592090 100644 --- a/include/anope.h +++ b/include/anope.h @@ -221,6 +221,14 @@ namespace Anope inline bool is_number_only() const { return this->find_first_not_of("0123456789.-") == npos; } 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 + * (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"); } + /** * Replace parts of the string. */ -- cgit