diff options
author | Adam <Adam@anope.org> | 2017-11-19 16:11:35 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2017-11-19 16:11:35 -0500 |
commit | 2fda0fff4655e92e388d7823e5b1c1f0c6bcfe2d (patch) | |
tree | b2cde60f3c2c98782690d67d134263924f59cc78 /modules/nickserv/set.cpp | |
parent | 3fb9bb5118a5c3c6c916a48feed0e069867f3133 (diff) |
Add subcommand syntax help, and reference subcommand help in syntax error messages
Diffstat (limited to 'modules/nickserv/set.cpp')
-rw-r--r-- | modules/nickserv/set.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
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); } } |