From 5ef707c31391930cc605c5e9cc86adee104a779c Mon Sep 17 00:00:00 2001 From: Adam Date: Fri, 23 Sep 2016 20:44:19 -0400 Subject: chanserv: fallback to reading botmodes from chanserv --- modules/chanserv/main/chanserv.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'modules') diff --git a/modules/chanserv/main/chanserv.cpp b/modules/chanserv/main/chanserv.cpp index 79f8aa81f..f53f6301b 100644 --- a/modules/chanserv/main/chanserv.cpp +++ b/modules/chanserv/main/chanserv.cpp @@ -524,7 +524,9 @@ class ChanServCore : public Module ci->WhoSends()->Assign(NULL, ci); if (ci->c->FindUser(ci->GetBot()) == NULL) { - ChannelStatus status(Config->GetModule("botserv")->Get("botmodes")); + Anope::string botmodes = Config->GetModule("botserv")->Get("botmodes", + Config->GetModule("chanserv")->Get("botmodes")); + ChannelStatus status(botmodes); ci->GetBot()->Join(ci->c, &status); } } -- cgit