fix(Core/ScriptMgr): Correct whisper hook parameters (#9674)
https://github.com/azerothcore/mod-eluna-lua-engine/issues/74
This commit is contained in:
parent
6cc1d1a497
commit
2c0de6aa28
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue