SMSG_PARTY_COMMAND_RESULT: Send proper operation value with uninvite commands
--HG-- branch : trunk
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
@@ -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
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user