diff options
Diffstat (limited to 'modules/nickserv')
-rw-r--r-- | modules/nickserv/ajoin.cpp | 4 | ||||
-rw-r--r-- | modules/nickserv/cert.cpp | 4 | ||||
-rw-r--r-- | modules/nickserv/info.cpp | 4 | ||||
-rw-r--r-- | modules/nickserv/list.cpp | 2 | ||||
-rw-r--r-- | modules/nickserv/logout.cpp | 2 | ||||
-rw-r--r-- | modules/nickserv/register.cpp | 2 | ||||
-rw-r--r-- | modules/nickserv/set.cpp | 16 |
7 files changed, 17 insertions, 17 deletions
diff --git a/modules/nickserv/ajoin.cpp b/modules/nickserv/ajoin.cpp index 79ca271c3..124b5f6f9 100644 --- a/modules/nickserv/ajoin.cpp +++ b/modules/nickserv/ajoin.cpp @@ -267,7 +267,7 @@ class CommandNSAJoin : public Command else if (nc->HasFieldS("NS_SUSPENDED")) source.Reply(_("\002{0}\002 isn't registered."), nc->GetDisplay()); else if (param.empty()) - this->OnSyntaxError(source, ""); + this->OnSyntaxError(source); else if (Anope::ReadOnly) source.Reply(_("Services are in read-only mode.")); else if (cmd.equals_ci("ADD")) @@ -275,7 +275,7 @@ class CommandNSAJoin : public Command else if (cmd.equals_ci("DEL")) return this->DoDel(source, nc, param); else - this->OnSyntaxError(source, ""); + this->OnSyntaxError(source); } bool OnHelp(CommandSource &source, const Anope::string &subcommand) override diff --git a/modules/nickserv/cert.cpp b/modules/nickserv/cert.cpp index bcc1c863f..cb089e26e 100644 --- a/modules/nickserv/cert.cpp +++ b/modules/nickserv/cert.cpp @@ -205,7 +205,7 @@ class CommandNSCert : public Command if (certfp.empty()) { - this->OnSyntaxError(source, "DEL"); + this->OnSyntaxError(source); return; } @@ -293,7 +293,7 @@ class CommandNSCert : public Command else if (cmd.equals_ci("DEL")) return this->DoDel(source, nc, certfp); else - this->OnSyntaxError(source, ""); + this->OnSyntaxError(source); } bool OnHelp(CommandSource &source, const Anope::string &subcommand) override diff --git a/modules/nickserv/info.cpp b/modules/nickserv/info.cpp index 8969805cf..ea9337950 100644 --- a/modules/nickserv/info.cpp +++ b/modules/nickserv/info.cpp @@ -188,7 +188,7 @@ class CommandNSSetHide : public Command } else { - this->OnSyntaxError(source, "HIDE"); + this->OnSyntaxError(source); return; } @@ -211,7 +211,7 @@ class CommandNSSetHide : public Command source.Reply(offmsg, nc->GetDisplay(), source.service->nick); } else - this->OnSyntaxError(source, "HIDE"); + this->OnSyntaxError(source); } void Execute(CommandSource &source, const std::vector<Anope::string> ¶ms) override diff --git a/modules/nickserv/list.cpp b/modules/nickserv/list.cpp index 51f6a2941..69bef0c11 100644 --- a/modules/nickserv/list.cpp +++ b/modules/nickserv/list.cpp @@ -228,7 +228,7 @@ class CommandNSSetPrivate : public Command source.Reply(_("Private option is now \002off\002 for \002{0}\002."), nc->GetDisplay()); } else - this->OnSyntaxError(source, "PRIVATE"); + this->OnSyntaxError(source); } void Execute(CommandSource &source, const std::vector<Anope::string> ¶ms) override diff --git a/modules/nickserv/logout.cpp b/modules/nickserv/logout.cpp index be9c1ea34..96e197e0c 100644 --- a/modules/nickserv/logout.cpp +++ b/modules/nickserv/logout.cpp @@ -37,7 +37,7 @@ class CommandNSLogout : public Command if (!source.IsServicesOper() && !nick.empty()) { - this->OnSyntaxError(source, ""); + this->OnSyntaxError(source); return; } diff --git a/modules/nickserv/register.cpp b/modules/nickserv/register.cpp index ff24c08d1..230290125 100644 --- a/modules/nickserv/register.cpp +++ b/modules/nickserv/register.cpp @@ -194,7 +194,7 @@ class CommandNSRegister : public Command if (Config->GetModule("nickserv/main")->Get<bool>("forceemail", "yes") && email.empty()) { - this->OnSyntaxError(source, ""); + this->OnSyntaxError(source); return; } diff --git a/modules/nickserv/set.cpp b/modules/nickserv/set.cpp index 31c41c7ad..086f0b489 100644 --- a/modules/nickserv/set.cpp +++ b/modules/nickserv/set.cpp @@ -33,7 +33,7 @@ class CommandNSSet : public Command void Execute(CommandSource &source, const std::vector<Anope::string> ¶ms) override { - this->OnSyntaxError(source, ""); + this->OnSyntaxError(source); } bool OnHelp(CommandSource &source, const Anope::string &subcommand) override @@ -87,7 +87,7 @@ class CommandNSSASet : public Command void Execute(CommandSource &source, const std::vector<Anope::string> ¶ms) override { - this->OnSyntaxError(source, ""); + this->OnSyntaxError(source); return; } @@ -275,7 +275,7 @@ class CommandNSSetAutoOp : public Command } else { - this->OnSyntaxError(source, "AUTOOP"); + this->OnSyntaxError(source); } } @@ -580,7 +580,7 @@ class CommandNSSetKeepModes : public Command } else { - this->OnSyntaxError(source, ""); + this->OnSyntaxError(source); } } @@ -703,7 +703,7 @@ class CommandNSSetKill : public Command } else { - this->OnSyntaxError(source, "KILL"); + this->OnSyntaxError(source); } } @@ -787,7 +787,7 @@ class CommandNSSetLanguage : public Command break; else if (j + 1 == Language::Languages.size()) { - this->OnSyntaxError(source, ""); + this->OnSyntaxError(source); return; } } @@ -908,7 +908,7 @@ class CommandNSSetMessage : public Command } else { - this->OnSyntaxError(source, "MSG"); + this->OnSyntaxError(source); } } @@ -1006,7 +1006,7 @@ class CommandNSSASetNoexpire : public Command } else { - this->OnSyntaxError(source, "NOEXPIRE"); + this->OnSyntaxError(source); } } |