diff --git a/TradeSkillMaster_AuctionDB/Modules/ChannelSync.lua b/TradeSkillMaster_AuctionDB/Modules/ChannelSync.lua index f1bd24e..3763be9 100644 --- a/TradeSkillMaster_AuctionDB/Modules/ChannelSync.lua +++ b/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