[12038] Use bitmask for chat tag.

Thanks to stfx for porting

Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
This commit is contained in:
kaelima 2012-07-13 22:23:43 +02:00 committed by Schmoozerd
parent d563c6576d
commit fd6c2e1751
6 changed files with 28 additions and 19 deletions

View file

@ -2116,7 +2116,7 @@ void ChatHandler::FillMessageData( WorldPacket *data, WorldSession* session, uin
*data << uint32(messageLength);
*data << message;
if(session != 0 && type != CHAT_MSG_WHISPER_INFORM && type != CHAT_MSG_DND && type != CHAT_MSG_AFK)
*data << uint8(session->GetPlayer()->chatTag());
*data << uint8(session->GetPlayer()->GetChatTag());
else
*data << uint8(0);
}