Quote:
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( )
IsAddonMessagePrefixRegistered( )
GetRegisteredAddonMessagePrefixes( )
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.
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( )
Quote:
Returns a boolean if successful (could fail if it hits the client side limit of 512 prefixes).
Returns a boolean if successful (could fail if it hits the client side limit of 512 prefixes).
IsAddonMessagePrefixRegistered( )
Quote:
Returns a Boolean if the prefix has been registered.
Returns a Boolean if the prefix has been registered.
GetRegisteredAddonMessagePrefixes( )
Quote:
Returns a table (or you can pass in a table), that will be filled in with all prefixes that were 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.
Posted from WoW Vault


