diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/bots.cpp | 5 | ||||
-rw-r--r-- | src/command.cpp | 6 |
2 files changed, 4 insertions, 7 deletions
diff --git a/src/bots.cpp b/src/bots.cpp index 33afc7595..01da4b888 100644 --- a/src/bots.cpp +++ b/src/bots.cpp @@ -299,10 +299,7 @@ Anope::string BotInfo::GetQueryCommand(const Anope::string &command, const Anope if (!extra.empty()) buf.append(" ").append(extra); - // 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"); + return buf.nobreak(); } BotInfo *BotInfo::Find(const Anope::string &nick, bool nick_only) diff --git a/src/command.cpp b/src/command.cpp index b688803cc..57fd1cf98 100644 --- a/src/command.cpp +++ b/src/command.cpp @@ -171,18 +171,18 @@ void Command::SendSyntax(CommandSource &source) if (first) { first = false; - source.Reply("%s: \002%s %s\002", prefix.c_str(), source.command.c_str(), + source.Reply("%s: \002%s %s\002", prefix.c_str(), source.command.nobreak().c_str(), Language::Translate(source.GetAccount(), syntax.c_str())); } else { - source.Reply("%-*s \002%s %s\002", (int)prefix.length(), "", source.command.c_str(), + source.Reply("%-*s \002%s %s\002", (int)prefix.length(), "", source.command.nobreak().c_str(), Language::Translate(source.GetAccount(), syntax.c_str())); } } if (first) - source.Reply("%s: \002%s\002", prefix.c_str(), source.command.c_str()); + source.Reply("%s: \002%s\002", prefix.c_str(), source.command.nobreak().c_str()); } bool Command::AllowUnregistered() const |