diff options
author | Robby <robby@chatbelgie.be> | 2015-09-25 02:40:28 +0200 |
---|---|---|
committer | Robby <robby@chatbelgie.be> | 2015-09-25 02:40:28 +0200 |
commit | 27a2645ed3a44cad9435a5315078bfd35d1c793f (patch) | |
tree | 9b44ea10086bd375afddae2920487d53e873b275 | |
parent | 830361e97d03c74e54cb1cf1bbf329dffdeb66f7 (diff) |
Fix chanserv botmodes.
-rw-r--r-- | modules/pseudoclients/chanserv.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/modules/pseudoclients/chanserv.cpp b/modules/pseudoclients/chanserv.cpp index 0ceeded25..ee9ab59ff 100644 --- a/modules/pseudoclients/chanserv.cpp +++ b/modules/pseudoclients/chanserv.cpp @@ -12,6 +12,13 @@ #include "module.h" #include "modules/cs_mode.h" +inline static Anope::string BotModes() +{ + return Config->GetModule("botserv")->Get<Anope::string>("botmodes", + Config->GetModule("chanserv")->Get<Anope::string>("botmodes", "o") + ); +} + class ChanServCore : public Module, public ChanServService { Reference<BotInfo> ChanServ; @@ -395,7 +402,7 @@ class ChanServCore : public Module, public ChanServService ci->WhoSends()->Assign(NULL, ci); if (ci->c->FindUser(ci->bi) == NULL) { - ChannelStatus status(Config->GetModule("botserv")->Get<const Anope::string>("botmodes")); + ChannelStatus status(BotModes()); ci->bi->Join(ci->c, &status); } } |