diff options
author | Adam <Adam@anope.org> | 2016-09-23 20:44:19 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2016-09-23 21:01:35 -0400 |
commit | 5ef707c31391930cc605c5e9cc86adee104a779c (patch) | |
tree | 02671a4aa6f0d9b857d10b6773054627b2566c38 | |
parent | a1f9d88f4a1614ec67773296d500ed227baede0f (diff) |
chanserv: fallback to reading botmodes from chanserv
-rw-r--r-- | modules/chanserv/main/chanserv.cpp | 4 |
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); } } |