summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2012-05-23 18:56:55 -0400
committerAdam <Adam@anope.org>2012-05-23 18:56:55 -0400
commit7d05c78517a4b6a4e98cd11e42fc9095bbca6689 (patch)
tree2a8c2afcc13d5a59cbb0251ad82af1cac5603b92 /src
parent13f0d6735fbf6893463d6a55eb7af2a8c029c96c (diff)
Fixed m_mlock
Diffstat (limited to 'src')
-rw-r--r--src/modules/m_mlock.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/modules/m_mlock.cpp b/src/modules/m_mlock.cpp
index 17deb17bd..b5f34c936 100644
--- a/src/modules/m_mlock.cpp
+++ b/src/modules/m_mlock.cpp
@@ -29,6 +29,7 @@ public:
void init()
{
ServerInstance->Modules->Attach(I_OnPreMode, this);
+ ServerInstance->Extensions.Register(&this->mlock);
}
Version GetVersion()
@@ -55,7 +56,7 @@ public:
for (const char *modes = parameters[1].c_str(); *modes; modes++)
{
- if (mlock_str->find(*modes))
+ if (mlock_str->find(*modes) != std::string::npos)
{
source->WriteNumeric(742, "%s %c %s :MODE cannot be set due to channel having an active MLOCK restriction policy",
channel->name.c_str(), *modes, mlock_str->c_str());