Merge branch 'master' into Playerbot

This commit is contained in:
Yunfan Li
2024-07-24 20:57:52 +08:00
80 changed files with 867 additions and 922 deletions

View File

@@ -9395,11 +9395,11 @@ void Player::Whisper(std::string_view text, Language language, Player* target, b
// announce afk or dnd message
if (target->isAFK())
{
ChatHandler(GetSession()).PSendSysMessage(LANG_PLAYER_AFK, target->GetName().c_str(), target->autoReplyMsg.c_str());
ChatHandler(GetSession()).PSendSysMessage(LANG_PLAYER_AFK, target->GetName(), target->autoReplyMsg);
}
else if (target->isDND())
{
ChatHandler(GetSession()).PSendSysMessage(LANG_PLAYER_DND, target->GetName().c_str(), target->autoReplyMsg.c_str());
ChatHandler(GetSession()).PSendSysMessage(LANG_PLAYER_DND, target->GetName(), target->autoReplyMsg);
}
}