WoW:API ComplainChat: Difference between revisions
Jump to navigation
Jump to search
m (→Notes) |
(fix lineid example to account for extra link args) |
||
Line 14: | Line 14: | ||
* Abusing the spam-reporting API will get it protected. [http://forums.worldofwarcraft.com/thread.html?topicId=63167579&sid=1&pageNo=25] | * Abusing the spam-reporting API will get it protected. [http://forums.worldofwarcraft.com/thread.html?topicId=63167579&sid=1&pageNo=25] | ||
* Complaining about a [[player]] squelches further communication from the target's [[account]] for the rest of the session. [http://forums.worldofwarcraft.com/thread.html?topicId=102905050] | * Complaining about a [[player]] squelches further communication from the target's [[account]] for the rest of the session. [http://forums.worldofwarcraft.com/thread.html?topicId=102905050] | ||
* ''lineID'' can also be obtained from the player link. E.g. <code>local lineID = strmatch(link, "|Hplayer: | * ''lineID'' can also be obtained from the player link. E.g. <code>local lineID = strmatch(link, ("|Hplayer:[^:]*:(%d+):.*|h")</code> - useful if using [[UIHANDLER_OnHyperlinkClick|OnHyperlinkClick]], [[UIHANDLER_OnHyperlinkEnter|OnHyperlinkEnter]], or [[UIHANDLER_OnHyperlinkLeave|OnHyperlinkLeave]]. | ||
== See Also == | == See Also == | ||
: API [[API CanComplainChat|CanComplainChat]] | : API [[API CanComplainChat|CanComplainChat]] |
Revision as of 10:45, 6 August 2010
← WoW API < ComplainChat
Complain about a specific chat message to the Game Masters.
ComplainChat(lineID) ComplainChat(author, [message])
Arguments
Notes
- Abusing the spam-reporting API will get it protected. [1]
- Complaining about a player squelches further communication from the target's account for the rest of the session. [2]
- lineID can also be obtained from the player link. E.g.
local lineID = strmatch(link, ("|Hplayer:[^:]*:(%d+):.*|h")
- useful if using OnHyperlinkClick, OnHyperlinkEnter, or OnHyperlinkLeave.
See Also
- API CanComplainChat