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/access.cpp | |
parent | cfbbcf32164c6011c80d2a3eed78f1db48c9903b (diff) |
Adjust reading chanserv core config opts
Diffstat (limited to 'modules/chanserv/access.cpp')
-rw-r--r-- | modules/chanserv/access.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/chanserv/access.cpp b/modules/chanserv/access.cpp index 5c9650577..ba9f2b5fb 100644 --- a/modules/chanserv/access.cpp +++ b/modules/chanserv/access.cpp @@ -157,7 +157,7 @@ class CommandCSAccess : public Command NickServ::Nick *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; @@ -194,7 +194,7 @@ class CommandCSAccess : 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); @@ -554,7 +554,7 @@ class CommandCSAccess : public Command " Use of this command requires the \002{4}\002 privilege on \037channel\037."), source.command, ChanServ::ACCESS_INVALID + 1, ChanServ::ACCESS_FOUNDER - 1, "AUTOOP", "ACCESS_CHANGE"); - if (!Config->GetModule("chanserv")->Get<bool>("disallow_channel_access")) + if (!Config->GetModule("chanserv/main")->Get<bool>("disallow_channel_access")) source.Reply(_("The given \037mask\037 may also be a channel, which will use the access list from the other channel up to the given \037level\037.")); //XXX show def levels |