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/extra/m_helpchan.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/extra/m_helpchan.cpp')
-rw-r--r-- | modules/extra/m_helpchan.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/modules/extra/m_helpchan.cpp b/modules/extra/m_helpchan.cpp index c63703f33..6d95cceca 100644 --- a/modules/extra/m_helpchan.cpp +++ b/modules/extra/m_helpchan.cpp @@ -9,10 +9,10 @@ class HelpChannel : public Module { - ci::string HelpChan; + Anope::string HelpChan; public: - HelpChannel(const std::string &modname, const std::string &creator) : Module(modname, creator) + HelpChannel(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator) { this->SetAuthor("Anope"); this->SetType(SUPPORTED); @@ -23,9 +23,9 @@ class HelpChannel : public Module OnReload(true); } - EventReturn OnChannelModeSet(Channel *c, ChannelModeName Name, const std::string ¶m) + EventReturn OnChannelModeSet(Channel *c, ChannelModeName Name, const Anope::string ¶m) { - if (Name == CMODE_OP && c && c->ci && c->name == this->HelpChan) + if (Name == CMODE_OP && c && c->ci && c->name.equals_ci(this->HelpChan)) { User *u = finduser(param); @@ -40,7 +40,7 @@ class HelpChannel : public Module { ConfigReader config; - this->HelpChan = config.ReadValue("m_helpchan", "helpchannel", "", 0).c_str(); + this->HelpChan = config.ReadValue("m_helpchan", "helpchannel", "", 0); } }; |