mirror of
https://github.com/liyunfan1223/azerothcore-wotlk.git
synced 2026-08-08 15:58:04 +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);
|
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;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user