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/set.cpp | |
parent | cfbbcf32164c6011c80d2a3eed78f1db48c9903b (diff) |
Adjust reading chanserv core config opts
Diffstat (limited to 'modules/chanserv/set.cpp')
-rw-r--r-- | modules/chanserv/set.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/chanserv/set.cpp b/modules/chanserv/set.cpp index 0d3e6e77e..6c2d48e79 100644 --- a/modules/chanserv/set.cpp +++ b/modules/chanserv/set.cpp @@ -308,7 +308,7 @@ class CommandCSSetFounder : public Command } NickServ::Account *nc = na->GetAccount(); - unsigned max_reg = Config->GetModule("chanserv")->Get<unsigned>("maxregistered"); + unsigned max_reg = Config->GetModule("chanserv/main")->Get<unsigned>("maxregistered"); if (max_reg && nc->GetChannelCount() >= max_reg && !source.HasPriv("chanserv/no-register-limit")) { source.Reply(_("\002{0}\002 has too many channels registered."), na->GetNick()); @@ -468,7 +468,7 @@ class CommandCSSetPeace : public Command inline static Anope::string BotModes() { return Config->GetModule("botserv")->Get<Anope::string>("botmodes", - Config->GetModule("chanserv")->Get<Anope::string>("botmodes", "o") + Config->GetModule("chanserv/main")->Get<Anope::string>("botmodes", "o") ); } |