summaryrefslogtreecommitdiff
path: root/modules/core/ss_main.cpp
diff options
context:
space:
mode:
authorNaram Qashat <cyberbotx@cyberbotx.com>2010-07-25 21:58:20 -0400
committerNaram Qashat <cyberbotx@cyberbotx.com>2010-07-25 21:58:20 -0400
commitae38212c1ce829c783edf971081c90137abb49a0 (patch)
tree5c652d9cdc38103dec6fa112d57fca882b4e3e44 /modules/core/ss_main.cpp
parent15d7f0f6fe8bb903275f603f734c13f65f3aa906 (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/ss_main.cpp')
-rw-r--r--modules/core/ss_main.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/core/ss_main.cpp b/modules/core/ss_main.cpp
index a48b77855..b15e8ce9e 100644
--- a/modules/core/ss_main.cpp
+++ b/modules/core/ss_main.cpp
@@ -20,9 +20,9 @@ class CommandSSHelp : public Command
{
}
- CommandReturn Execute(User *u, const std::vector<ci::string> &params)
+ CommandReturn Execute(User *u, const std::vector<Anope::string> &params)
{
- ircdproto->SendMessage(statserv, u->nick.c_str(), "This is a test of the emergency StatServ system.");
+ ircdproto->SendMessage(statserv, u->nick, "This is a test of the emergency StatServ system.");
return MOD_CONT;
}
};
@@ -30,7 +30,7 @@ class CommandSSHelp : public Command
class SSMain : public Module
{
public:
- SSMain(const std::string &modname, const std::string &creator) : Module(modname, creator)
+ SSMain(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator)
{
this->SetAuthor("Anope");
this->SetType(CORE);
@@ -51,7 +51,7 @@ class SSMain : public Module
{
if (statserv)
{
- for (std::map<ci::string, Command *>::iterator it = statserv->Commands.begin(), it_end = statserv->Commands.end(); it != it_end; ++it)
+ for (CommandMap::iterator it = statserv->Commands.begin(), it_end = statserv->Commands.end(); it != it_end; ++it)
this->DelCommand(statserv, it->second);
ircdproto->SendQuit(statserv, "Quit due to module unload.");