New server options to block adding GMs to friends by players and to block inviting GMs to parties

--HG--
branch : trunk
This commit is contained in:
Genars & Aokromes
2009-05-14 23:07:17 +02:00
parent 662dbb9744
commit 854e791c2f
5 changed files with 45 additions and 18 deletions

View File

@@ -78,6 +78,12 @@ void WorldSession::HandleGroupInviteOpcode( WorldPacket & recv_data )
return;
}
// restrict invite to GMs
if (!sWorld.getConfig(CONFIG_ALLOW_GM_GROUP) && !GetPlayer()->isGameMaster() && player->isGameMaster())
{
SendPartyResult(PARTY_OP_INVITE, membername, PARTY_RESULT_CANT_FIND_TARGET);
return;
}
// can't group with
if(!sWorld.getConfig(CONFIG_ALLOW_TWO_SIDE_INTERACTION_GROUP) && GetPlayer()->GetTeam() != player->GetTeam())
{