mirror of
https://github.com/anope/anope.git
synced 2026-06-25 20:26:39 +02:00
Made Command::OnSyntaxError accept a subcommand parameter, we now give syntax error messages for subcommands (eg, cs_set) instead of giving the general syntax error for the main command
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2643 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
+1
-1
@@ -33,7 +33,7 @@ CommandReturn Command::Execute(User *u, std::vector<ci::string> &) { return MOD_
|
||||
|
||||
bool Command::OnHelp(User *u, const ci::string &subcommand) { return false; }
|
||||
|
||||
void Command::OnSyntaxError(User *u) { }
|
||||
void Command::OnSyntaxError(User *u, const ci::string &subcommand) { }
|
||||
|
||||
void Command::SetPermission(const std::string &reststr)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user