diff --git a/src/PlayerbotAI.cpp b/src/PlayerbotAI.cpp index e926c68b..d05bbe5c 100644 --- a/src/PlayerbotAI.cpp +++ b/src/PlayerbotAI.cpp @@ -930,7 +930,6 @@ void PlayerbotAI::HandleCommand(uint32 type, std::string const text, Player* fro fromPlayer->SendDirectMessage(&data); return; } - if (!IsAllowedCommand(filtered) && (!GetSecurity()->CheckLevelFor(PLAYERBOT_SECURITY_ALLOW_ALL, type != CHAT_MSG_WHISPER, fromPlayer))) return; @@ -2803,7 +2802,12 @@ bool PlayerbotAI::TellMaster(std::ostringstream& stream, PlayerbotSecurityLevel bool PlayerbotAI::TellMaster(std::string const text, PlayerbotSecurityLevel securityLevel) { - if (!master || !TellMasterNoFacing(text, securityLevel)) + if (!master) + { + if (sPlayerbotAIConfig->randomBotSayWithoutMaster) + return TellMasterNoFacing(text, securityLevel); + } + if (!TellMasterNoFacing(text, securityLevel)) return false; if (!bot->isMoving() && !bot->IsInCombat() && bot->GetMapId() == master->GetMapId() &&