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/chanserv/main/chanserv.cpp | 2 +- modules/chanserv/set.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/chanserv') 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