Skip to content

Commit

Permalink
Add Group OnMemberAccept hook
Browse files Browse the repository at this point in the history
-Update Eluna submodule

Co-Authored-By: Foereaper <2131987+foereaper@users.noreply.github.com>
  • Loading branch information
Niam5 and Foereaper committed Jan 1, 2024
1 parent eb2ac81 commit 4a5c4e6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/game/Groups/GroupHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 4a5c4e6

Please sign in to comment.