summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);
}
}