mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 01:37:00 +00:00
[8651] Not send unexpected reply whisper to sender for addon messages.
Thanks to Leo9@mangos.lighthouseapp.com for provided client side testing addons.
This commit is contained in:
parent
adcfd1e078
commit
cf7ec4c456
2 changed files with 8 additions and 4 deletions
|
|
@ -16564,9 +16564,13 @@ void Player::Whisper(const std::string& text, uint32 language,uint64 receiver)
|
|||
BuildPlayerChat(&data, CHAT_MSG_WHISPER, text, language);
|
||||
rPlayer->GetSession()->SendPacket(&data);
|
||||
|
||||
data.Initialize(SMSG_MESSAGECHAT, 200);
|
||||
rPlayer->BuildPlayerChat(&data, CHAT_MSG_REPLY, text, language);
|
||||
GetSession()->SendPacket(&data);
|
||||
// not send confirmation for addon messages
|
||||
if (language != LANG_ADDON)
|
||||
{
|
||||
data.Initialize(SMSG_MESSAGECHAT, 200);
|
||||
rPlayer->BuildPlayerChat(&data, CHAT_MSG_REPLY, text, language);
|
||||
GetSession()->SendPacket(&data);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue