#1 - March 12, 2011, 2:08 a.m.
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> )
- IsAddonMessagePrefixRegistered( <string> )
- <table> GetRegisteredAddonMessagePrefixes( <table> )
Returns a boolean if successful (could fail if it hits the client side limit of 512 prefixes).
Returns a Boolean if the prefix has been registered.
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.