1
0
mirror of https://github.com/anope/anope.git synced 2026-07-01 07:56:39 +02:00

Automatically line wrap messages sent by services.

This commit is contained in:
Sadie Powell
2025-04-10 13:06:37 +01:00
parent b421ba258e
commit a883b616a1
5 changed files with 216 additions and 14 deletions
+4 -1
View File
@@ -299,7 +299,10 @@ Anope::string BotInfo::GetQueryCommand(const Anope::string &command, const Anope
if (!extra.empty())
buf.append(" ").append(extra);
return buf;
// 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.
return buf.replace_all_cs("\x20", "\x1A");
}
BotInfo *BotInfo::Find(const Anope::string &nick, bool nick_only)