fix(Core/ScriptMgr): Correct whisper hook parameters (#9674)

https://github.com/azerothcore/mod-eluna-lua-engine/issues/74
This commit is contained in:
Rochet2
2021-12-12 12:20:54 +02:00
committed by GitHub
parent 6cc1d1a497
commit 2c0de6aa28

View File

@@ -8844,7 +8844,7 @@ void Player::Whisper(std::string_view text, Language language, Player* target, b
std::string _text(text);
if (!sScriptMgr->CanPlayerUseChat(this, CHAT_MSG_EMOTE, LANG_UNIVERSAL, _text, target))
if (!sScriptMgr->CanPlayerUseChat(this, CHAT_MSG_WHISPER, language, _text, target))
{
return;
}