summaryrefslogtreecommitdiff
path: root/modules/chanserv/xop.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2016-10-09 22:04:32 -0400
committerAdam <Adam@anope.org>2016-10-09 22:04:32 -0400
commitd22b68b7f747578477163c307f6af3914f05f43e (patch)
tree0335f243372c4917b82d40b2634a7799e2a9413a /modules/chanserv/xop.cpp
parentcfbbcf32164c6011c80d2a3eed78f1db48c9903b (diff)
Adjust reading chanserv core config opts
Diffstat (limited to 'modules/chanserv/xop.cpp')
-rw-r--r--modules/chanserv/xop.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/chanserv/xop.cpp b/modules/chanserv/xop.cpp
index 74feaca7e..5ccf389dc 100644
--- a/modules/chanserv/xop.cpp
+++ b/modules/chanserv/xop.cpp
@@ -161,7 +161,7 @@ class CommandCSXOP : public Command
if (IRCD->IsChannelValid(mask))
{
- if (Config->GetModule("chanserv")->Get<bool>("disallow_channel_access"))
+ if (Config->GetModule("chanserv/main")->Get<bool>("disallow_channel_access"))
{
source.Reply(_("Channels may not be on access lists."));
return;
@@ -186,7 +186,7 @@ class CommandCSXOP : public Command
{
na = NickServ::FindNick(mask);
- if (!na && Config->GetModule("chanserv")->Get<bool>("disallow_hostmask_access"))
+ if (!na && Config->GetModule("chanserv/main")->Get<bool>("disallow_hostmask_access"))
{
source.Reply(_("Masks and unregistered users may not be on access lists."));
return;
@@ -225,7 +225,7 @@ class CommandCSXOP : public Command
}
}
- unsigned access_max = Config->GetModule("chanserv")->Get<unsigned>("accessmax", "1024");
+ unsigned access_max = Config->GetModule("chanserv/main")->Get<unsigned>("accessmax", "1024");
if (access_max && ci->GetAccessCount() >= access_max)
{
source.Reply(_("Sorry, you can only have %d access entries on a channel, including access entries from other channels."), access_max);