mirror of
https://github.com/anope/anope.git
synced 2026-06-12 19:14:47 +02:00
Improve the error reporting in os_shutdown.
This commit is contained in:
@@ -7,7 +7,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Anope\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2025-03-08 13:33+0000\n"
|
||||
"POT-Creation-Date: 2025-03-16 20:14+0000\n"
|
||||
"PO-Revision-Date: 2025-03-08 13:33+0000\n"
|
||||
"Last-Translator: Sadie Powell <sadie@witchery.services>\n"
|
||||
"Language-Team: English\n"
|
||||
@@ -6144,6 +6144,9 @@ msgstr ""
|
||||
msgid "The mode lock list of %s is full."
|
||||
msgstr ""
|
||||
|
||||
msgid "The network name you specified is incorrect."
|
||||
msgstr ""
|
||||
|
||||
#, c-format
|
||||
msgid "The new display MUST be a nickname of the nickname group %s."
|
||||
msgstr ""
|
||||
|
||||
@@ -11,6 +11,8 @@
|
||||
|
||||
#include "module.h"
|
||||
|
||||
#define WRONG_NETWORK _("The network name you specified is incorrect. Did you mean to run %s on a different network?")
|
||||
|
||||
class CommandOSQuit final
|
||||
: public Command
|
||||
{
|
||||
@@ -28,7 +30,10 @@ public:
|
||||
const auto networkname = Config->GetBlock("networkinfo").Get<Anope::string>("networkname");
|
||||
if (requirename && (params.empty() || !params[0].equals_cs(networkname)))
|
||||
{
|
||||
OnSyntaxError(source, source.command);
|
||||
if (!params.empty())
|
||||
source.Reply(WRONG_NETWORK, source.command.c_str());
|
||||
else
|
||||
OnSyntaxError(source, source.command);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -67,7 +72,10 @@ public:
|
||||
const auto networkname = Config->GetBlock("networkinfo").Get<Anope::string>("networkname");
|
||||
if (requirename && (params.empty() || !params[0].equals_cs(networkname)))
|
||||
{
|
||||
OnSyntaxError(source, source.command);
|
||||
if (!params.empty())
|
||||
source.Reply(WRONG_NETWORK, source.command.c_str());
|
||||
else
|
||||
OnSyntaxError(source, source.command);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -104,7 +112,10 @@ public:
|
||||
const auto networkname = Config->GetBlock("networkinfo").Get<Anope::string>("networkname");
|
||||
if (requirename && (params.empty() || !params[0].equals_cs(networkname)))
|
||||
{
|
||||
OnSyntaxError(source, source.command);
|
||||
if (!params.empty())
|
||||
source.Reply(WRONG_NETWORK, source.command.c_str());
|
||||
else
|
||||
OnSyntaxError(source, source.command);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user