summaryrefslogtreecommitdiff
path: root/modules/operserv/akill.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/operserv/akill.cpp')
-rw-r--r--modules/operserv/akill.cpp18
1 files changed, 17 insertions, 1 deletions
diff --git a/modules/operserv/akill.cpp b/modules/operserv/akill.cpp
index 8a752312a..8988fa743 100644
--- a/modules/operserv/akill.cpp
+++ b/modules/operserv/akill.cpp
@@ -386,7 +386,7 @@ class CommandOSAKill : public Command
else if (cmd.equals_ci("CLEAR"))
return this->DoClear(source);
else
- this->OnSyntaxError(source, "");
+ this->OnSyntaxError(source);
}
bool OnHelp(CommandSource &source, const Anope::string &subcommand) override
@@ -448,6 +448,22 @@ class CommandOSAKill : public Command
}
return true;
}
+
+ void OnSyntaxError(CommandSource &source, const Anope::string &subcommand = "") override
+ {
+ if (subcommand.equals_ci("ADD"))
+ {
+ SubcommandSyntaxError(source, subcommand, _("[+\037expiry\037] \037mask\037 \037reason\037"));
+ }
+ else if (subcommand.equals_ci("DEL"))
+ {
+ SubcommandSyntaxError(source, subcommand, _("{\037mask\037 | \037entry-num\037 | \037list\037 | \037id\037}"));
+ }
+ else
+ {
+ Command::OnSyntaxError(source, subcommand);
+ }
+ }
};
class OSAKill : public Module