diff options
author | Adam <Adam@drink-coca-cola.info> | 2010-06-03 23:09:22 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2010-06-18 21:04:09 -0400 |
commit | e6447fa2c40270d2e2435229127dd970194b47d9 (patch) | |
tree | 65778fc16c1789517595b2b4cbfcb2c9330b022e /src/command.cpp | |
parent | 6cd88494662c5c4af2da891926dcc82367596cb9 (diff) |
Added in a subcommand system and switched ns_set and ns_saset to use it
Diffstat (limited to 'src/command.cpp')
-rw-r--r-- | src/command.cpp | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/src/command.cpp b/src/command.cpp index 7fd5975ef..922f298c3 100644 --- a/src/command.cpp +++ b/src/command.cpp @@ -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; +} + |