mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-16 18:40:28 +00:00
fix(Core/ScriptMgr): Correct whisper hook parameters (#9674)
https://github.com/azerothcore/mod-eluna-lua-engine/issues/74
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user