diff options
author | Naram Qashat <cyberbotx@cyberbotx.com> | 2010-07-25 21:58:20 -0400 |
---|---|---|
committer | Naram Qashat <cyberbotx@cyberbotx.com> | 2010-07-25 21:58:20 -0400 |
commit | ae38212c1ce829c783edf971081c90137abb49a0 (patch) | |
tree | 5c652d9cdc38103dec6fa112d57fca882b4e3e44 /src/command.cpp | |
parent | 15d7f0f6fe8bb903275f603f734c13f65f3aa906 (diff) |
Epic commit to replace most of the strings in Anope with a single Anope::string class, plus some other little fixes here and there. If you follow 1.9.x development and are testing things, THIS is one of those things that NEEDS testing.
Diffstat (limited to 'src/command.cpp')
-rw-r--r-- | src/command.cpp | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/src/command.cpp b/src/command.cpp index 5c4bc4ee4..de9842d78 100644 --- a/src/command.cpp +++ b/src/command.cpp @@ -8,7 +8,7 @@ #include "services.h" #include "modules.h" -Command::Command(const ci::string &sname, size_t min_params, size_t max_params, const ci::string &spermission) : MaxParams(max_params), MinParams(min_params), name(sname), permission(spermission) +Command::Command(const Anope::string &sname, size_t min_params, size_t max_params, const Anope::string &spermission) : MaxParams(max_params), MinParams(min_params), name(sname), permission(spermission) { this->module = NULL; this->service = NULL; @@ -18,20 +18,18 @@ Command::~Command() { } -CommandReturn Command::Execute(User *u, const std::vector<ci::string> &) +CommandReturn Command::Execute(User *u, const std::vector<Anope::string> &) { return MOD_CONT; } void Command::OnServHelp(User *u) { } -bool Command::OnHelp(User *u, const ci::string &subcommand) { return false; } +bool Command::OnHelp(User *u, const Anope::string &subcommand) { return false; } -void Command::OnSyntaxError(User *u, const ci::string &subcommand) -{ -} +void Command::OnSyntaxError(User *u, const Anope::string &subcommand) { } -void Command::SetPermission(const ci::string &reststr) +void Command::SetPermission(const Anope::string &reststr) { this->permission = reststr; } @@ -41,7 +39,7 @@ bool Command::AddSubcommand(Command *c) return false; } -bool Command::DelSubcommand(const ci::string &cname) +bool Command::DelSubcommand(const Anope::string &cname) { return false; } |