mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-22 23:30:14 +00:00
feat: fire GUILD_INVITE_REQUEST event with inviter and guild names
Fire GUILD_INVITE_REQUEST when another player invites the local player to a guild. Includes inviterName and guildName as arguments. Used by auto-accept guild addons and invitation notification addons.
This commit is contained in:
parent
d24d12fb8f
commit
6ab1a189c7
1 changed files with 2 additions and 0 deletions
|
|
@ -20820,6 +20820,8 @@ void GameHandler::handleGuildInvite(network::Packet& packet) {
|
|||
pendingGuildInviteGuildName_ = data.guildName;
|
||||
LOG_INFO("Guild invite from: ", data.inviterName, " to guild: ", data.guildName);
|
||||
addSystemChatMessage(data.inviterName + " has invited you to join " + data.guildName + ".");
|
||||
if (addonEventCallback_)
|
||||
addonEventCallback_("GUILD_INVITE_REQUEST", {data.inviterName, data.guildName});
|
||||
}
|
||||
|
||||
void GameHandler::handleGuildCommandResult(network::Packet& packet) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue