diff options
author | Adam <Adam@anope.org> | 2016-10-09 22:04:32 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2016-10-09 22:04:32 -0400 |
commit | d22b68b7f747578477163c307f6af3914f05f43e (patch) | |
tree | 0335f243372c4917b82d40b2634a7799e2a9413a /modules/chanserv/flags.cpp | |
parent | cfbbcf32164c6011c80d2a3eed78f1db48c9903b (diff) |
Adjust reading chanserv core config opts
Diffstat (limited to 'modules/chanserv/flags.cpp')
-rw-r--r-- | modules/chanserv/flags.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/chanserv/flags.cpp b/modules/chanserv/flags.cpp index 5f3212481..732e3aa8a 100644 --- a/modules/chanserv/flags.cpp +++ b/modules/chanserv/flags.cpp @@ -113,7 +113,7 @@ class CommandCSFlags : 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; @@ -136,7 +136,7 @@ class CommandCSFlags : public Command else { 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; @@ -189,7 +189,7 @@ class CommandCSFlags : 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 \002{0}\002 access entries on a channel, including access entries from other channels."), access_max); |