SMSG_PARTY_COMMAND_RESULT: Send proper operation value with uninvite commands

--HG--
branch : trunk
This commit is contained in:
Spp
2010-05-15 06:23:56 +02:00
parent a0105b5bde
commit 9a5f744256
2 changed files with 5 additions and 4 deletions
+4 -4
View File
@@ -257,7 +257,7 @@ void WorldSession::HandleGroupUninviteGuidOpcode(WorldPacket & recv_data)
PartyResult res = GetPlayer()->CanUninviteFromGroup(); PartyResult res = GetPlayer()->CanUninviteFromGroup();
if (res != ERR_PARTY_RESULT_OK) if (res != ERR_PARTY_RESULT_OK)
{ {
SendPartyResult(PARTY_OP_LEAVE, "", res); SendPartyResult(PARTY_OP_UNINVITE, "", res);
return; return;
} }
@@ -277,7 +277,7 @@ void WorldSession::HandleGroupUninviteGuidOpcode(WorldPacket & recv_data)
return; return;
} }
SendPartyResult(PARTY_OP_LEAVE, "", ERR_TARGET_NOT_IN_GROUP_S); SendPartyResult(PARTY_OP_UNINVITE, "", ERR_TARGET_NOT_IN_GROUP_S);
} }
void WorldSession::HandleGroupUninviteOpcode(WorldPacket & recv_data) void WorldSession::HandleGroupUninviteOpcode(WorldPacket & recv_data)
@@ -299,7 +299,7 @@ void WorldSession::HandleGroupUninviteOpcode(WorldPacket & recv_data)
PartyResult res = GetPlayer()->CanUninviteFromGroup(); PartyResult res = GetPlayer()->CanUninviteFromGroup();
if (res != ERR_PARTY_RESULT_OK) if (res != ERR_PARTY_RESULT_OK)
{ {
SendPartyResult(PARTY_OP_LEAVE, "", res); SendPartyResult(PARTY_OP_UNINVITE, "", res);
return; return;
} }
@@ -319,7 +319,7 @@ void WorldSession::HandleGroupUninviteOpcode(WorldPacket & recv_data)
return; return;
} }
SendPartyResult(PARTY_OP_LEAVE, membername, ERR_TARGET_NOT_IN_GROUP_S); SendPartyResult(PARTY_OP_UNINVITE, membername, ERR_TARGET_NOT_IN_GROUP_S);
} }
void WorldSession::HandleGroupSetLeaderOpcode(WorldPacket & recv_data) void WorldSession::HandleGroupSetLeaderOpcode(WorldPacket & recv_data)
+1
View File
@@ -77,6 +77,7 @@ struct AccountData
enum PartyOperation enum PartyOperation
{ {
PARTY_OP_INVITE = 0, PARTY_OP_INVITE = 0,
PARTY_OP_UNINVITE = 1,
PARTY_OP_LEAVE = 2, PARTY_OP_LEAVE = 2,
PARTY_OP_SWAP = 4 PARTY_OP_SWAP = 4
}; };