[CORE] guild safety check only when two side guild interaction is disabled

This commit is contained in:
Yehonal
2016-08-03 15:55:37 +02:00
committed by Yehonal
parent 6773cd3128
commit 7247f2a5ee

View File

@@ -2006,7 +2006,7 @@ void WorldSession::HandleCharFactionOrRaceChange(WorldPacket& recvData)
if (recvData.GetOpcode() == CMSG_CHAR_FACTION_CHANGE) if (recvData.GetOpcode() == CMSG_CHAR_FACTION_CHANGE)
{ {
// if player is in a guild // if player is in a guild
if (playerData->guildId) if (playerData->guildId && !sWorld->getBoolConfig(CONFIG_ALLOW_TWO_SIDE_INTERACTION_GUILD))
{ {
WorldPacket data(SMSG_CHAR_FACTION_CHANGE, 1); WorldPacket data(SMSG_CHAR_FACTION_CHANGE, 1);
data << (uint8)CHAR_CREATE_CHARACTER_IN_GUILD; data << (uint8)CHAR_CREATE_CHARACTER_IN_GUILD;