I would like to mention that this will block ALL of the "jump to leader" popups, and not only if you are joining a group.
Not sure if it happens at other spots as well though.
If you only want it to happen after you have joined a group you could use the EVENT_GROUP_MEMBER_JOINED,
then chck if YOU have joined (via the name e.g.), or use event filters to filter on the unitag "player" (if the group join event uses that),
and set a local addon variable = true.
Inside the PreHook / overwritten function check if the variable is true and only then block the port to group leader request.
Don't forget to set the variable = false again.
|