summaryrefslogtreecommitdiff
path: root/modules/extra/m_helpchan.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/extra/m_helpchan.cpp')
-rw-r--r--modules/extra/m_helpchan.cpp10
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 &param)
+ EventReturn OnChannelModeSet(Channel *c, ChannelModeName Name, const Anope::string &param)
{
- 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);
}
};