summaryrefslogtreecommitdiff
path: root/modules/botserv/kick.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2017-11-19 16:11:35 -0500
committerAdam <Adam@anope.org>2017-11-19 16:11:35 -0500
commit2fda0fff4655e92e388d7823e5b1c1f0c6bcfe2d (patch)
treeb2cde60f3c2c98782690d67d134263924f59cc78 /modules/botserv/kick.cpp
parent3fb9bb5118a5c3c6c916a48feed0e069867f3133 (diff)
Add subcommand syntax help, and reference subcommand help in syntax error messages
Diffstat (limited to 'modules/botserv/kick.cpp')
-rw-r--r--modules/botserv/kick.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/modules/botserv/kick.cpp b/modules/botserv/kick.cpp
index 7c7eb3829..080303e68 100644
--- a/modules/botserv/kick.cpp
+++ b/modules/botserv/kick.cpp
@@ -523,7 +523,7 @@ class CommandBSKick : public Command
void Execute(CommandSource &source, const std::vector<Anope::string> &params) override
{
- this->OnSyntaxError(source, "");
+ this->OnSyntaxError(source);
}
bool OnHelp(CommandSource &source, const Anope::string &subcommand) override
@@ -583,9 +583,9 @@ class CommandBSKickBase : public Command
else if (ci == NULL)
source.Reply(_("Channel \002{0}\002 isn't registered."), chan);
else if (option.empty())
- this->OnSyntaxError(source, "");
+ this->OnSyntaxError(source);
else if (!option.equals_ci("ON") && !option.equals_ci("OFF"))
- this->OnSyntaxError(source, "");
+ this->OnSyntaxError(source);
else if (!source.AccessFor(ci).HasPriv("SET") && !source.HasOverridePriv("botserv/administration"))
source.Reply(_("Access denied. You do not have privilege \002{0}\002 on \002{1}\002."), "SET", ci->GetName());
else if (!ci->GetBot())
@@ -648,7 +648,7 @@ class CommandBSKickBase : public Command
source.Reply(_("Bot won't kick for \002{0}\002 anymore."), optname);
}
else
- this->OnSyntaxError(source, "");
+ this->OnSyntaxError(source);
}
};
@@ -896,7 +896,7 @@ class CommandBSKickFlood : public CommandBSKickBase
}
else
{
- this->OnSyntaxError(source, params[1]);
+ this->OnSyntaxError(source);
}
}
@@ -998,7 +998,7 @@ class CommandBSKickRepeat : public CommandBSKickBase
}
else
{
- this->OnSyntaxError(source, params[1]);
+ this->OnSyntaxError(source);
}
}
@@ -1110,7 +1110,7 @@ class CommandBSSetDontKickOps : public Command
}
else
{
- this->OnSyntaxError(source, source.GetCommand());
+ this->OnSyntaxError(source);
}
}
@@ -1174,7 +1174,7 @@ class CommandBSSetDontKickVoices : public Command
}
else
{
- this->OnSyntaxError(source, source.GetCommand());
+ this->OnSyntaxError(source);
}
}