1
0
mirror of https://github.com/anope/anope.git synced 2026-06-26 05:26:37 +02:00

Fix splitting in the middle of some command names.

This commit is contained in:
Sadie Powell
2025-04-22 17:36:26 +01:00
parent f5a85c69d2
commit f362959834
16 changed files with 49 additions and 44 deletions
+3 -3
View File
@@ -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