WoW API: ComplainChat

From AddOn Studio
Revision as of 04:42, 12 June 2007 by WoWWiki>Kaydeethree (initial commit. trying to source the 1-per-minute 5-per-day comment, I know I saw a blue post it)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

WoW API < ComplainChat


Reports the specified line of chat to the GMs.

ComplainChat(lineID)


Arguments

lineID
int The line of chat to complain about. (lineID comes from the player link in the chat line)

Details

Part of the new spam reporting API calls added in 2.1, currently unprotected. Use CanComplainChat(lineID) to see if the specified lineID is allowed to be reported. Abusing the spam-reporting APIs will get them protected. [1]
Reporting a user using this method puts the user's entire account on ignore for the duration of the session. [2]
The equivalent mail spam functions are ComplainInboxItem(index) and CanComplainInboxItem(index)
There is a limitation of 1 spam report per minute and 5 reports per day per account.

See UnitPopup.lua lines 737-741 StaticPopup.lua lines 333-343, build 6739