Thread Tools Display Modes
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
03-12-11, 01:28 AM   #2
sigg
Featured Artist
 
sigg's Avatar
Featured
Join Date: Aug 2008
Posts: 1,251
Good news!

__________________
RDX manager
Sigg
  Reply With Quote
03-12-11, 02:19 AM   #3
Xinhuan
A Chromatic Dragonspawn
 
Xinhuan's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2007
Posts: 174
Wait, so there's no command to unregister an addon prefix?

Also, the client has a 512 prefix limit but the server only recognizes the first 64?
__________________
Author of Postal, Omen3, GemHelper, BankItems, WoWEquip, GatherMate, GatherMate2, Routes and Cartographer_Routes
  Reply With Quote
03-12-11, 02:22 AM   #4
Nibelheim
local roygbi-
 
Nibelheim's Avatar
AddOn Author - Click to view addons
Join Date: Jan 2010
Posts: 1,600
Originally Posted by Xinhuan View Post
Wait, so there's no command to unregister an addon prefix?
I'd say they're trying to limit the amount of registration/unregistration requests addons make to the server. Though it would be nice to be able to only register prefixes for a duration.
  Reply With Quote
03-12-11, 07:24 AM   #5
sigg
Featured Artist
 
sigg's Avatar
Featured
Join Date: Aug 2008
Posts: 1,251
I really don't care.

In RDX, we use only one prefix.

Our framework implement a "sub prefix" in the message, to know the callback function.
__________________
RDX manager
Sigg

Last edited by sigg : 03-12-11 at 07:35 AM.
  Reply With Quote
03-12-11, 04:48 PM   #6
orionshock
A Wyrmkin Dreamwalker
 
orionshock's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 50
That's Kinda cool they did this, considering we've been asking for it from the start

__________________
"I was there in the beginning... and things were very different back then" --An Echo from a time before.
  Reply With Quote
03-15-11, 01:45 AM   #7
Xinhuan
A Chromatic Dragonspawn
 
Xinhuan's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2007
Posts: 174
They replied by queries! WOOO!
__________________
Author of Postal, Omen3, GemHelper, BankItems, WoWEquip, GatherMate, GatherMate2, Routes and Cartographer_Routes
  Reply With Quote
03-15-11, 01:49 AM   #8
MysticalOS
A Wyrmkin Dreamwalker
 
MysticalOS's Avatar
AddOn Author - Click to view addons
Join Date: May 2009
Posts: 54
Originally Posted by Xinhuan View Post
They replied by queries! WOOO!
i saw, i also like how they very sternly said circumventing the limit on purpose to restore old methods would provoke a response
  Reply With Quote

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

Thread Tools
Display Modes

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