|
|
|
@ -300,8 +300,16 @@ local function MergeIncomingData(payload, sender) |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
function ChannelSync:OnChannelMessage(_, msg, source, _, _, _, _, _, channelName) |
|
|
|
function ChannelSync:OnChannelMessage(_, msg, source, _, _, _, _, _, channelName) |
|
|
|
if channelName ~= CHANNEL_NAME then return end |
|
|
|
if channelName ~= CHANNEL_NAME then |
|
|
|
if strsub(msg or "", 1, #COMM_PREFIX) ~= COMM_PREFIX then return end |
|
|
|
if strsub(msg or "", 1, #COMM_PREFIX) == COMM_PREFIX then |
|
|
|
|
|
|
|
DebugPrint("Prefix received on channel '" .. tostring(channelName) .. "' (expected '" .. CHANNEL_NAME .. "').") |
|
|
|
|
|
|
|
end |
|
|
|
|
|
|
|
return |
|
|
|
|
|
|
|
end |
|
|
|
|
|
|
|
if strsub(msg or "", 1, #COMM_PREFIX) ~= COMM_PREFIX then |
|
|
|
|
|
|
|
DebugPrint("Message on channel without prefix: '" .. strsub(msg or "", 1, #COMM_PREFIX) .. "'.") |
|
|
|
|
|
|
|
return |
|
|
|
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
source = ("-"):split(source or "") |
|
|
|
source = ("-"):split(source or "") |
|
|
|
if strlower(source or "") == strlower(UnitName("player") or "") then return end |
|
|
|
if strlower(source or "") == strlower(UnitName("player") or "") then return end |
|
|
|
|