diff options
| author | Sadie Powell <sadie@witchery.services> | 2025-04-22 17:36:26 +0100 |
|---|---|---|
| committer | Sadie Powell <sadie@witchery.services> | 2025-04-22 18:16:31 +0100 |
| commit | f3629598347763c984d03ee70235133c45dd9908 (patch) | |
| tree | 9aa5190273a40005a4c730c06258b1ee3ae703c7 /modules/operserv | |
| parent | f5a85c69d225edaed4e11eb4c2b27d66ebc5195e (diff) | |
Fix splitting in the middle of some command names.
Diffstat (limited to 'modules/operserv')
| -rw-r--r-- | modules/operserv/os_shutdown.cpp | 2 | ||||
| -rw-r--r-- | modules/operserv/os_sxline.cpp | 24 |
2 files changed, 13 insertions, 13 deletions
diff --git a/modules/operserv/os_shutdown.cpp b/modules/operserv/os_shutdown.cpp index 971c0525f..dc3624242 100644 --- a/modules/operserv/os_shutdown.cpp +++ b/modules/operserv/os_shutdown.cpp @@ -21,7 +21,7 @@ namespace if (params.empty()) cmd->OnSyntaxError(source, source.command); else if (!params[0].equals_cs(Config->GetBlock("networkinfo").Get<Anope::string>("networkname"))) - source.Reply(_("The network name you specified is incorrect. Did you mean to run %s on a different network?"), source.command.c_str()); + source.Reply(_("The network name you specified is incorrect. Did you mean to run %s on a different network?"), source.command.nobreak().c_str()); else return true; // Name was specified correctly return false; // Network name was wrong or not specified. diff --git a/modules/operserv/os_sxline.cpp b/modules/operserv/os_sxline.cpp index 0b85d9d16..f19cc529c 100644 --- a/modules/operserv/os_sxline.cpp +++ b/modules/operserv/os_sxline.cpp @@ -26,9 +26,9 @@ public: ~SXLineDelCallback() override { if (deleted) - source.Reply(deleted, N_("Deleted %d entry from the %s list.", "Deleted %d entries from the %s list."), deleted, source.command.c_str()); + source.Reply(deleted, N_("Deleted %d entry from the %s list.", "Deleted %d entries from the %s list."), deleted, source.command.nobreak().c_str()); else - source.Reply(_("No matching entries on the %s list."), source.command.c_str()); + source.Reply(_("No matching entries on the %s list."), source.command.nobreak().c_str()); } void HandleNumber(unsigned number) override @@ -66,7 +66,7 @@ private: if (!this->xlm() || this->xlm()->GetList().empty()) { - source.Reply(_("%s list is empty."), source.command.c_str()); + source.Reply(_("%s list is empty."), source.command.nobreak().c_str()); return; } @@ -89,14 +89,14 @@ private: if (!x) { - source.Reply(_("\002%s\002 not found on the %s list."), mask.c_str(), source.command.c_str()); + source.Reply(_("\002%s\002 not found on the %s list."), mask.c_str(), source.command.nobreak().c_str()); return; } FOREACH_MOD(OnDelXLine, (source, x, this->xlm())); SXLineDelCallback::DoDel(this->xlm(), source, x); - source.Reply(_("\002%s\002 deleted from the %s list."), mask.c_str(), source.command.c_str()); + source.Reply(_("\002%s\002 deleted from the %s list."), mask.c_str(), source.command.nobreak().c_str()); Log(LOG_ADMIN, source, this) << "to remove " << mask << " from the list"; } @@ -110,7 +110,7 @@ private: { if (!this->xlm() || this->xlm()->GetList().empty()) { - source.Reply(_("%s list is empty."), source.command.c_str()); + source.Reply(_("%s list is empty."), source.command.nobreak().c_str()); return; } @@ -175,10 +175,10 @@ private: } if (list.IsEmpty()) - source.Reply(_("No matching entries on the %s list."), source.command.c_str()); + source.Reply(_("No matching entries on the %s list."), source.command.nobreak().c_str()); else { - source.Reply(_("Current %s list:"), source.command.c_str()); + source.Reply(_("Current %s list:"), source.command.nobreak().c_str()); std::vector<Anope::string> replies; list.Process(replies); @@ -218,7 +218,7 @@ private: } Log(LOG_ADMIN, source, this) << "to CLEAR the list"; - source.Reply(_("The %s list has been cleared."), source.command.c_str()); + source.Reply(_("The %s list has been cleared."), source.command.nobreak().c_str()); if (Anope::ReadOnly) source.Reply(READ_ONLY_MODE); @@ -231,7 +231,7 @@ public: const Anope::string GetDesc(CommandSource &source) const override { - return Anope::printf(Language::Translate(source.GetAccount(), _("Manipulate the %s list")), source.command.upper().c_str()); + return Anope::printf(Language::Translate(source.GetAccount(), _("Manipulate the %s list")), source.command.nobreak().c_str()); } void Execute(CommandSource &source, const std::vector<Anope::string> ¶ms) override @@ -415,7 +415,7 @@ class CommandOSSNLine final this->xlm()->Send(NULL, x); } - source.Reply(_("\002%s\002 added to the %s list."), mask.c_str(), source.command.c_str()); + source.Reply(_("\002%s\002 added to the %s list."), mask.c_str(), source.command.nobreak().c_str()); Log(LOG_ADMIN, source, this) << "on " << mask << " (" << reason << "), expires in " << (expires ? Anope::Duration(expires - Anope::CurTime) : "never") << " [affects " << affected << " user(s) (" << percent << "%)]"; if (Anope::ReadOnly) source.Reply(READ_ONLY_MODE); @@ -654,7 +654,7 @@ class CommandOSSQLine final this->xlm()->Send(NULL, x); } - source.Reply(_("\002%s\002 added to the %s list."), mask.c_str(), source.command.c_str()); + source.Reply(_("\002%s\002 added to the %s list."), mask.c_str(), source.command.nobreak().c_str()); Log(LOG_ADMIN, source, this) << "on " << mask << " (" << reason << "), expires in " << (expires ? Anope::Duration(expires - Anope::CurTime) : "never") << " [affects " << affected << " user(s) (" << percent << "%)]"; if (Anope::ReadOnly) source.Reply(READ_ONLY_MODE); |
