From 70c4659fe5fa7e63352a6c7a1e7a048c4353a33b Mon Sep 17 00:00:00 2001 From: Adam Date: Sun, 9 Oct 2016 22:04:47 -0400 Subject: Adjust reading botserv core config opts --- modules/botserv/kick.cpp | 2 +- modules/chanserv/main/chanserv.cpp | 2 +- modules/chanserv/set.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'modules') 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("casesensitive"); + bool casesensitive = Config->GetModule("botserv/main")->Get("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("botmodes", + Anope::string botmodes = Config->GetModule("botserv/main")->Get("botmodes", Config->GetModule("chanserv/main")->Get("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("botmodes", + return Config->GetModule("botserv/main")->Get("botmodes", Config->GetModule("chanserv/main")->Get("botmodes", "o") ); } -- cgit