Core/Groups: Fixed issue, when invite message says that you are inviting yourself

Signed-off-by: Sovak <[email protected]>
This commit is contained in:
Sovak
2012-09-01 15:16:59 +02:00
parent 859b706079
commit 5a649b52b3
+4 -4
View File
@@ -181,7 +181,7 @@ void WorldSession::HandleGroupInviteOpcode(WorldPacket & recvData)
data.WriteBit(invitedGuid[4]);
data.WriteBits(strlen(player->GetName()), 7); // Invited name length
data.WriteBits(strlen(GetPlayer()->GetName()), 7); // Inviter name length
data.WriteBits(0, 24); // Count 2
@@ -212,7 +212,7 @@ void WorldSession::HandleGroupInviteOpcode(WorldPacket & recvData)
data.WriteByteSeq(invitedGuid[7]);
data.WriteString(player->GetName()); // invited name
data.WriteString(GetPlayer()->GetName()); // inviter name
data << int32(0);
@@ -283,7 +283,7 @@ void WorldSession::HandleGroupInviteOpcode(WorldPacket & recvData)
data.WriteBit(invitedGuid[4]);
data.WriteBits(strlen(player->GetName()), 7); // Invited name length
data.WriteBits(strlen(GetPlayer()->GetName()), 7); // Inviter name length
data.WriteBits(0, 24); // Count 2
@@ -314,7 +314,7 @@ void WorldSession::HandleGroupInviteOpcode(WorldPacket & recvData)
data.WriteByteSeq(invitedGuid[7]);
data.WriteString(player->GetName());
data.WriteString(GetPlayer()->GetName());
data << int32(0);