Date: 2012-07-28 21:43:47
Error occured in: AddOn: gInviteMe
Message: Warning: AddOn gInviteMe attempted to call a protected function (GuildInvite()) which may require interaction.
Swatter, v5.13.5258 (BoldBandicoot)
BlizRuntimeLib_enUS v18.104.22.168300 <us>
To test whether a function (GuildInvite in this case) is protected in some form, install SlashIn or InDemand and use this directly after reloading your UI:
/in 1 /run GuildInvite("Someplayerthatdoesntexist")
If it's protected, you should see a popup saying A macro script has been blocked from an action only available to the Blizzard UI.
If it just requires a hardware event, you'll see "Interface action failed because of an AddOn" printed in your chat. This message only seems to print once per session regardless of how many protected functions are called insecurely, that's why you should use this test right after a UI reload.
If it's only protected in combat and you test while in combat, you'll see the same chat message as above.
If it's not protected in any way, no message will be printed.
Edit: What Unkle said.
Edit 2: Turns out the first test can be used to distinguish between all three forms of protection, so the second test isn't needed.
07/28/2012 07:40 AMPosted by UnkleLooks like it requires a hardware event to trigger an invite. Probably quietly patched in some time ago.
Disappointing. Unfortunately, a hardware event defeats the purpose of the addon so I think I'll just retire the addon.
Please report any Code of Conduct violations, including:
Threats of violence. We take these seriously and will alert the proper authorities.
Posts containing personal information about other players. This includes physical addresses, e-mail addresses, phone numbers, and inappropriate photos and/or videos.
Harassing or discriminatory language. This will not be tolerated.