Files
wow-weakauras/FreshShit/WhoSniffer/event6.lua

23 lines
504 B
Lua

-- CHAT_MSG_CHANNEL
---@type event string
---@type msg string
---@type sender string
function(event, msg, sender, ...)
local channelId = select(6, ...)
if channelId ~= aura_env.channelId then
return
end
if msg == "who" then
for _, player in pairs(aura_env.stinkies) do
local msg = aura_env.MakeNotifyMessage(player)
local message = {
channel = "CHANNEL",
data = channelId,
message = msg
}
table.insert(aura_env.messageQueue, message)
end
end
end