diff options
author | Genars & Aokromes <none@none> | 2009-05-14 23:07:17 +0200 |
---|---|---|
committer | Genars & Aokromes <none@none> | 2009-05-14 23:07:17 +0200 |
commit | 80a6d723f5e406b9972b8b8d0b371dd12b9af951 (patch) | |
tree | eadc4be7c0a579ca3bf97dfee7c26690cda3bc0c /src/game/GroupHandler.cpp | |
parent | 419c448bc94c8bddf8347f558115fa7c18c72c9f (diff) |
New server options to block adding GMs to friends by players and to block inviting GMs to parties
--HG--
branch : trunk
Diffstat (limited to 'src/game/GroupHandler.cpp')
-rw-r--r-- | src/game/GroupHandler.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/game/GroupHandler.cpp b/src/game/GroupHandler.cpp index f63505ae24a..67c6ca5053a 100644 --- a/src/game/GroupHandler.cpp +++ b/src/game/GroupHandler.cpp @@ -83,6 +83,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()) { |