mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-22 23:30:14 +00:00
feat: fire PARTY_INVITE_REQUEST event with inviter name
Fire PARTY_INVITE_REQUEST when another player invites the local player to a group. Used by auto-accept group addons and invite notification addons. Includes the inviter's name as the first argument.
This commit is contained in:
parent
70a50e45f5
commit
d24d12fb8f
1 changed files with 2 additions and 0 deletions
|
|
@ -20028,6 +20028,8 @@ void GameHandler::handleGroupInvite(network::Packet& packet) {
|
|||
if (auto* sfx = renderer->getUiSoundManager())
|
||||
sfx->playTargetSelect();
|
||||
}
|
||||
if (addonEventCallback_)
|
||||
addonEventCallback_("PARTY_INVITE_REQUEST", {data.inviterName});
|
||||
}
|
||||
|
||||
void GameHandler::handleGroupDecline(network::Packet& packet) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue