summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2016-09-23 20:44:19 -0400
committerAdam <Adam@anope.org>2016-09-23 21:01:35 -0400
commit5ef707c31391930cc605c5e9cc86adee104a779c (patch)
tree02671a4aa6f0d9b857d10b6773054627b2566c38
parenta1f9d88f4a1614ec67773296d500ed227baede0f (diff)
chanserv: fallback to reading botmodes from chanserv
-rw-r--r--modules/chanserv/main/chanserv.cpp4
1 files changed, 3 insertions, 1 deletions
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<Anope::string>("botmodes"));
+ Anope::string botmodes = Config->GetModule("botserv")->Get<Anope::string>("botmodes",
+ Config->GetModule("chanserv")->Get<Anope::string>("botmodes"));
+ ChannelStatus status(botmodes);
ci->GetBot()->Join(ci->c, &status);
}
}