1
0
mirror of https://github.com/anope/anope.git synced 2026-06-26 01:46:39 +02:00

Added in a subcommand system and switched ns_set and ns_saset to use it

This commit is contained in:
Adam
2010-06-03 23:09:22 -04:00
committed by Adam
parent 6cd8849466
commit e6447fa2c4
44 changed files with 2688 additions and 1219 deletions
+17 -2
View File
@@ -20,16 +20,31 @@ Command::~Command()
{
}
CommandReturn Command::Execute(User *u, const std::vector<ci::string> &) { return MOD_CONT; }
CommandReturn Command::Execute(User *u, const std::vector<ci::string> &)
{
return MOD_CONT;
}
void Command::OnServHelp(User *u) { }
bool Command::OnHelp(User *u, const ci::string &subcommand) { return false; }
void Command::OnSyntaxError(User *u, const ci::string &subcommand) { }
void Command::OnSyntaxError(User *u, const ci::string &subcommand)
{
}
void Command::SetPermission(const std::string &reststr)
{
this->permission = reststr;
}
bool Command::AddSubcommand(Command *c)
{
return false;
}
bool Command::DelSubcommand(const ci::string &cname)
{
return false;
}