1
0
mirror of https://github.com/anope/anope.git synced 2026-06-26 20:16:38 +02:00

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.

This commit is contained in:
Naram Qashat
2010-07-25 21:58:20 -04:00
parent 15d7f0f6fe
commit ae38212c1c
232 changed files with 7424 additions and 8911 deletions
+6 -8
View File
@@ -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;
}