Skip to content

Commit 84c06c2

Browse files
committed
Compat code updates
1 parent 8980a34 commit 84c06c2

4 files changed

Lines changed: 4 additions & 2 deletions

File tree

highlight.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ BCM.modules[#BCM.modules+1] = function()
7373
end
7474
end
7575

76+
local ChatFrame_AddMessageEventFilter = ChatFrameUtil and ChatFrameUtil.AddMessageEventFilter or ChatFrame_AddMessageEventFilter
7677
ChatFrame_AddMessageEventFilter("CHAT_MSG_CHANNEL", filterFunc)
7778
ChatFrame_AddMessageEventFilter("CHAT_MSG_YELL", filterFunc)
7879
ChatFrame_AddMessageEventFilter("CHAT_MSG_GUILD", filterFunc)

smartgroup.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ BCM.modules[#BCM.modules+1] = function()
77

88
SlashCmdList["SMARTGROUP"] = function(msg)
99
if msg and msg:len() > 0 then
10-
SendChatMessage(msg, (IsInGroup(2) and "INSTANCE_CHAT") or (IsInRaid() and "RAID") or (IsInGroup() and "PARTY") or "SAY")
10+
C_ChatInfo.SendChatMessage(msg, (IsInGroup(2) and "INSTANCE_CHAT") or (IsInRaid() and "RAID") or (IsInGroup() and "PARTY") or "SAY")
1111
end
1212
end
1313
SLASH_SMARTGROUP1 = "/gr"

telltarget.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ BCM.modules[#BCM.modules+1] = function()
1111
if realm and realm ~= "" then
1212
name = name.."-"..realm
1313
end
14-
SendChatMessage(msg, "WHISPER", nil, name)
14+
C_ChatInfo.SendChatMessage(msg, "WHISPER", nil, name)
1515
end
1616
end
1717
SLASH_TELLTARGET1 = "/tt"

urlcopy.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ BCM.modules[#BCM.modules+1] = function()
110110
if found > 0 then return false, newMsg, ... end
111111
end
112112

113+
local ChatFrame_AddMessageEventFilter = ChatFrameUtil and ChatFrameUtil.AddMessageEventFilter or ChatFrame_AddMessageEventFilter
113114
ChatFrame_AddMessageEventFilter("CHAT_MSG_CHANNEL", filterFunc)
114115
ChatFrame_AddMessageEventFilter("CHAT_MSG_YELL", filterFunc)
115116
ChatFrame_AddMessageEventFilter("CHAT_MSG_GUILD", filterFunc)

0 commit comments

Comments
 (0)