From 638e7cd23c01c79662cec7da02013f572e621d26 Mon Sep 17 00:00:00 2001 From: "Erik L. Vonderscheer" Date: Mon, 13 Jul 2009 04:56:30 +0000 Subject: [PATCH] Fix RepeatFunc debugging output --- TradeFilter3.lua | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/TradeFilter3.lua b/TradeFilter3.lua index 1a51ab1..377c11a 100644 --- a/TradeFilter3.lua +++ b/TradeFilter3.lua @@ -251,15 +251,15 @@ function TF3:FindRepeat(userID, msg) if (msg == repeatdata[userID].lastmsg and gtime - repeatdata[userID].lastIndex < tonumber(TF3.db.profile.time_repeats)) then repeatdata[userID].repeats = repeatdata[userID].repeats + 1 if (repeatdata[userID].repeats >= tonumber(TF3.db.profile.num_repeats)) then - if (msg ~= last_msg) then - --@alpha@ - if (TF3.db.profile.debug) then + --@alpha@ + if (TF3.db.profile.debug) then + if (msg ~= last_msg) then TF3:FindFrame(repeatFrame, "|cFFFF8C00[" .. L["#RPT"] .. "]|r |cFFD9D9D9[" .. userID .. "]:|r |cFFC08080" .. msg .. "|r") last_msg = msg end - --@end-alpha@ - TF3.db.profile.repeats_blocked = TF3.db.profile.repeats_blocked + 1 end + --@end-alpha@ + TF3.db.profile.repeats_blocked = TF3.db.profile.repeats_blocked + 1 return true end elseif (msg ~= repeatdata[userID].lastmsg) then @@ -496,7 +496,6 @@ function TF3:FilterFunc(...) TF3:FindFrame(redirectFrame, "|cFFC08080[" .. chan .. "]|r |cFFD9D9D9[" .. userID .. "]:|r |cFFC08080" .. msg .. "|r") end lastmsg, lastuserID = msg, userID - last_msg = msg end end end -- 1.7.9.5