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 /modules/core/hs_help.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 'modules/core/hs_help.cpp')
-rw-r--r-- | modules/core/hs_help.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/modules/core/hs_help.cpp b/modules/core/hs_help.cpp index b4b20e149..4645590f5 100644 --- a/modules/core/hs_help.cpp +++ b/modules/core/hs_help.cpp @@ -21,15 +21,15 @@ class CommandHSHelp : public Command this->SetFlag(CFLAG_ALLOW_UNREGISTERED); } - CommandReturn Execute(User *u, const std::vector<ci::string> ¶ms) + CommandReturn Execute(User *u, const std::vector<Anope::string> ¶ms) { - mod_help_cmd(HostServ, u, params[0].c_str()); + mod_help_cmd(HostServ, u, params[0]); return MOD_CONT; } - void OnSyntaxError(User *u, const ci::string &subcommand) + void OnSyntaxError(User *u, const Anope::string &subcommand) { - notice_help(Config.s_HostServ, u, HOST_HELP, Config.s_HostServ); + notice_help(Config.s_HostServ, u, HOST_HELP, Config.s_HostServ.c_str()); for (CommandMap::const_iterator it = HostServ->Commands.begin(), it_end = HostServ->Commands.end(); it != it_end; ++it) if (!Config.HidePrivilegedCommands || it->second->permission.empty() || (u->Account() && u->Account()->HasCommand(it->second->permission))) it->second->OnServHelp(u); @@ -39,7 +39,7 @@ class CommandHSHelp : public Command class HSHelp : public Module { public: - HSHelp(const std::string &modname, const std::string &creator) : Module(modname, creator) + HSHelp(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator) { this->SetAuthor("Anope"); this->SetType(CORE); |