Core/PacketIO: Updated values of all known server opcodes

This commit is contained in:
Shauren
2015-03-27 22:21:24 +01:00
parent b05d74ba46
commit 8cfb542ee4
60 changed files with 1128 additions and 1431 deletions

View File

@@ -249,7 +249,7 @@ void WorldSession::HandleChatMessage(ChatMsg type, uint32 lang, std::string msg,
if (GetPlayer()->GetTeam() != receiver->GetTeam() && !HasPermission(rbac::RBAC_PERM_TWO_SIDE_INTERACTION_CHAT) && !receiver->IsInWhisperWhiteList(sender->GetGUID()))
{
SendWrongFactionNotice();
SendPlayerNotFoundNotice(target);
return;
}
@@ -628,7 +628,7 @@ void WorldSession::HandleChatIgnoredOpcode(WorldPacket& recvData)
void WorldSession::SendPlayerNotFoundNotice(std::string const& name)
{
WorldPacket data(SMSG_CHAT_PLAYER_NOT_FOUND, name.size()+1);
WorldPacket data(SMSG_CHAT_PLAYER_NOTFOUND, name.size()+1);
data << name;
SendPacket(&data);
}
@@ -640,12 +640,6 @@ void WorldSession::SendPlayerAmbiguousNotice(std::string const& name)
SendPacket(&data);
}
void WorldSession::SendWrongFactionNotice()
{
WorldPacket data(SMSG_CHAT_WRONG_FACTION, 0);
SendPacket(&data);
}
void WorldSession::SendChatRestrictedNotice(ChatRestrictionType restriction)
{
WorldPacket data(SMSG_CHAT_RESTRICTED, 1);