Browse Source

log channel sync prefix mismatch

dev
Jørgen Lien Sellæg 4 months ago
parent
commit
f2e48bb0cd
  1. 12
      TradeSkillMaster_AuctionDB/Modules/ChannelSync.lua

12
TradeSkillMaster_AuctionDB/Modules/ChannelSync.lua

@ -300,8 +300,16 @@ local function MergeIncomingData(payload, sender)
end
function ChannelSync:OnChannelMessage(_, msg, source, _, _, _, _, _, channelName)
if channelName ~= CHANNEL_NAME then return end
if strsub(msg or "", 1, #COMM_PREFIX) ~= COMM_PREFIX then return end
if channelName ~= CHANNEL_NAME then
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 "")
if strlower(source or "") == strlower(UnitName("player") or "") then return end

Loading…
Cancel
Save