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 | 854e791c2fcebc3d5244e5924574acb6f20ad896 (patch) | |
| tree | ccd6d3d19c3c037d578480943c6e9cb5813c41cc /src/game/GroupHandler.cpp | |
| parent | 662dbb97448dddef46cc5cad61bef6afaa2c19bd (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 b0094989e19..cd7004f5a07 100644 --- a/src/game/GroupHandler.cpp +++ b/src/game/GroupHandler.cpp @@ -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()) { |
