JoinChannelByName enigma - WoWInterface
Thread Tools Display Modes
03-18-21, 04:29 PM   #1
A Murloc Raider
Join Date: Oct 2009
Posts: 4
JoinChannelByName enigma

UDPATE: Nevermind, I'm an idiot... it seems SendChatMessage can only be triggered by a hardware event, not by an addon, thus the error. I'll have to find another way for my addon to talk to other versions of it out there...


I'm trying to join a channel programmatically through an addon using the following logic:

JoinChannelByName("mychannel", nil, ChatFrame1:GetID(), false)
however, this seems to join the channel in a way that I cannot actually send or receive anything from/to it:

local id = GetChannelName("mychannel")
SendChatMessage("testmsg", "CHANNEL", "COMMON", id)
seems to fail:

Interface action failed because of an AddOn
Which points to a taint issue, but nothing is showing up in the taint.log (using level 1).

I'm confused... how can SendChatMessage raise a taint?

What am I missing?

Last edited by hamunaptra : 03-18-21 at 04:45 PM.
  Reply With Quote
03-18-21, 04:53 PM   #2
A Warpwood Thunder Caller
briskman3000's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2009
Posts: 90
If you want your addon to talk to itself on another player, you should probably be using the addon hidden chat message system, and not a custom chat channel

My Addons: Convert Ratings Honor Track
  Reply With Quote
03-18-21, 05:59 PM   #3
A Molten Giant
Kanegasi's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2007
Posts: 557
Patch 8.2.5 (as well as Classic patch 1.13.3) has partically protected SendChatMessage if you're trying to send to SAY, YELL, or CHANNEL. Those three message destinations require a hardware event in order for addons to use them, such as a key or a click. However, you can freely send to SAY or YELL while in an instance.
  Reply With Quote
03-19-21, 04:45 AM   #4
A Murloc Raider
Join Date: Oct 2009
Posts: 4
I switched to SendAddonMessage() but noticed that it seems to work fine in a party, i.e

C_ChatInfo.SendAddonMessage(prefix, "test")
is received by addons on other clients in the same party just fine, but:

C_ChatInfo.SendAddonMessage(prefix, "test", "CHANNEL", channelid)
where channelid is the id of a custom channel I joined on all client with

channelid = GetChannelName(channelname)
seems to NOT propagate to the other clients (i.e. CHAT_MSG_ADDON is not fired).

Is SendAddonMessage somehow limited, too for "CHANNEL" or am I doing something completely wrong?
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » JoinChannelByName enigma

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