Thread Tools Display Modes
Prev Previous Post   Next Post Next
03-11-11, 08:29 PM   #1
Cairenn
Credendo Vides
 
Cairenn's Avatar
Premium Member
WoWInterface Admin
Join Date: Mar 2004
Posts: 7,134
Patch 4.1: Addon messages will be filtered

Addon authors that use chat messages should check that their addons still work in 4.1

Authors will need to add calls to RegisterAddonMessagePrefix() in order to receive addon messages of a particular prefix, presumably during PLAYER_ENTERING_WORLD for the majority of addons. Note that this system errs on the side of sending too much; it is possible for addon messages to make it to the CHAT_MSG_ADDON handlers when no addon has registered it.
  • RegisterAddonMessagePrefix( <string> )
Returns a boolean if successful (could fail if it hits the client side limit of 512 prefixes).
  • IsAddonMessagePrefixRegistered( <string> )
Returns a Boolean if the prefix has been registered.
  • <table> GetRegisteredAddonMessagePrefixes( <table> )
Returns a table (or you can pass in a table), that will be filled in with all prefixes that were registered.
Prefixes are limited to 16 characters now, and they no longer take up a portion of the 256 character chat message limit. The server has a 64 prefix limit. If you exceed this limit your client will not filter any messages.

Also: SendAddonMessage() is now allowed for the OFFICER channel.

Original post is here.
  Reply With Quote
 

WoWInterface » Site Forums » News » Patch 4.1: Addon messages will be filtered


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off