diff options
| author | Adam <Adam@anope.org> | 2016-10-09 22:04:47 -0400 |
|---|---|---|
| committer | Adam <Adam@anope.org> | 2016-10-09 22:04:47 -0400 |
| commit | 70c4659fe5fa7e63352a6c7a1e7a048c4353a33b (patch) | |
| tree | 24a08effcbb55aa7f73b4f658996387f0701f4d8 | |
| parent | d22b68b7f747578477163c307f6af3914f05f43e (diff) | |
Adjust reading botserv core config opts
| -rw-r--r-- | modules/botserv/kick.cpp | 2 | ||||
| -rw-r--r-- | modules/chanserv/main/chanserv.cpp | 2 | ||||
| -rw-r--r-- | modules/chanserv/set.cpp | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/modules/botserv/kick.cpp b/modules/botserv/kick.cpp index 3d56ddd21..1b9d67fc7 100644 --- a/modules/botserv/kick.cpp +++ b/modules/botserv/kick.cpp @@ -1605,7 +1605,7 @@ class BSKick : public Module /* Normalize the buffer */ Anope::string nbuf = Anope::NormalizeBuffer(realbuf); - bool casesensitive = Config->GetModule("botserv")->Get<bool>("casesensitive"); + bool casesensitive = Config->GetModule("botserv/main")->Get<bool>("casesensitive"); /* Normalize can return an empty string if this only conains control codes etc */ if (badwords && !nbuf.empty()) diff --git a/modules/chanserv/main/chanserv.cpp b/modules/chanserv/main/chanserv.cpp index 47174eb26..ec2e8a623 100644 --- a/modules/chanserv/main/chanserv.cpp +++ b/modules/chanserv/main/chanserv.cpp @@ -524,7 +524,7 @@ class ChanServCore : public Module ci->WhoSends()->Assign(NULL, ci); if (ci->c->FindUser(ci->GetBot()) == NULL) { - Anope::string botmodes = Config->GetModule("botserv")->Get<Anope::string>("botmodes", + Anope::string botmodes = Config->GetModule("botserv/main")->Get<Anope::string>("botmodes", Config->GetModule("chanserv/main")->Get<Anope::string>("botmodes")); ChannelStatus status(botmodes); ci->GetBot()->Join(ci->c, &status); diff --git a/modules/chanserv/set.cpp b/modules/chanserv/set.cpp index 6c2d48e79..27ad49fa6 100644 --- a/modules/chanserv/set.cpp +++ b/modules/chanserv/set.cpp @@ -467,7 +467,7 @@ class CommandCSSetPeace : public Command inline static Anope::string BotModes() { - return Config->GetModule("botserv")->Get<Anope::string>("botmodes", + return Config->GetModule("botserv/main")->Get<Anope::string>("botmodes", Config->GetModule("chanserv/main")->Get<Anope::string>("botmodes", "o") ); } |
