diff --git a/src/game/Groups/GroupHandler.cpp b/src/game/Groups/GroupHandler.cpp index a7aa364985d..92cbfaeb18a 100644 --- a/src/game/Groups/GroupHandler.cpp +++ b/src/game/Groups/GroupHandler.cpp @@ -29,6 +29,9 @@ #include "Social/SocialMgr.h" #include "Util/Util.h" #include "Anticheat/Anticheat.hpp" +#ifdef BUILD_ELUNA +#include "LuaEngine/LuaEngine.h" +#endif /* differeces from off: -you can uninvite yourself - is is useful @@ -207,6 +210,11 @@ void WorldSession::HandleGroupAcceptOpcode(WorldPacket& /*recv_data*/) return; } +#ifdef BUILD_ELUNA + if (!sEluna->OnMemberAccept(group, GetPlayer())) + return; +#endif + Player* leader = sObjectMgr.GetPlayer(group->GetLeaderGuid()); // forming a new group, create it