1
0
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:
Adam-
2009-11-11 23:43:02 +00:00
parent 30b7e50a43
commit d16f4930f4
94 changed files with 276 additions and 247 deletions
+1 -1
View File
@@ -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)
{