summaryrefslogtreecommitdiff
path: root/modules/botserv
diff options
context:
space:
mode:
Diffstat (limited to 'modules/botserv')
-rw-r--r--modules/botserv/assign.cpp2
-rw-r--r--modules/botserv/badwords.cpp4
-rw-r--r--modules/botserv/bot.cpp2
-rw-r--r--modules/botserv/control.cpp2
-rw-r--r--modules/botserv/kick.cpp16
-rw-r--r--modules/botserv/set.cpp4
6 files changed, 15 insertions, 15 deletions
diff --git a/modules/botserv/assign.cpp b/modules/botserv/assign.cpp
index 469f1f051..302977749 100644
--- a/modules/botserv/assign.cpp
+++ b/modules/botserv/assign.cpp
@@ -206,7 +206,7 @@ class CommandBSSetNoBot : public Command
}
else
{
- this->OnSyntaxError(source, source.GetCommand());
+ this->OnSyntaxError(source);
}
}
diff --git a/modules/botserv/badwords.cpp b/modules/botserv/badwords.cpp
index d504763be..c270d91d2 100644
--- a/modules/botserv/badwords.cpp
+++ b/modules/botserv/badwords.cpp
@@ -336,7 +336,7 @@ class CommandBSBadwords : public Command
if (!need_args && word.empty())
{
- this->OnSyntaxError(source, cmd);
+ this->OnSyntaxError(source);
return;
}
@@ -368,7 +368,7 @@ class CommandBSBadwords : public Command
else if (cmd.equals_ci("CLEAR"))
this->DoClear(source, ci);
else
- this->OnSyntaxError(source, "");
+ this->OnSyntaxError(source);
}
bool OnHelp(CommandSource &source, const Anope::string &subcommand) override
diff --git a/modules/botserv/bot.cpp b/modules/botserv/bot.cpp
index 21a5f6ce9..65a891839 100644
--- a/modules/botserv/bot.cpp
+++ b/modules/botserv/bot.cpp
@@ -380,7 +380,7 @@ class CommandBSBot : public Command
}
else
{
- this->OnSyntaxError(source, "");
+ this->OnSyntaxError(source);
}
}
diff --git a/modules/botserv/control.cpp b/modules/botserv/control.cpp
index 758f795f2..48d5cd9f6 100644
--- a/modules/botserv/control.cpp
+++ b/modules/botserv/control.cpp
@@ -68,7 +68,7 @@ class CommandBSSay : public Command
if (text[0] == '\001')
{
- this->OnSyntaxError(source, "");
+ this->OnSyntaxError(source);
return;
}
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);
}
}
diff --git a/modules/botserv/set.cpp b/modules/botserv/set.cpp
index 638aac012..d137882a6 100644
--- a/modules/botserv/set.cpp
+++ b/modules/botserv/set.cpp
@@ -31,7 +31,7 @@ class CommandBSSet : 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
@@ -191,7 +191,7 @@ class CommandBSSetPrivate : public Command
}
else
{
- this->OnSyntaxError(source, source.GetCommand());
+ this->OnSyntaxError(source);
}
}