From b799f7ae6cc1932ed9728708422cc373d68b90bf Mon Sep 17 00:00:00 2001 From: "Erik L. Vonderscheer" Date: Mon, 13 Jul 2009 05:09:46 +0000 Subject: [PATCH] Repeat debug squash --- TradeFilter3.lua | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/TradeFilter3.lua b/TradeFilter3.lua index ce9386b..0cff102 100644 --- a/TradeFilter3.lua +++ b/TradeFilter3.lua @@ -251,15 +251,18 @@ 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 - --@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") + TF3.db.profile.repeats_blocked = TF3.db.profile.repeats_blocked + 1 + last_msg = msg + end + else + if (msg ~= last_msg) then + TF3.db.profile.repeats_blocked = TF3.db.profile.repeats_blocked + 1 last_msg = msg end end - --@end-alpha@ - TF3.db.profile.repeats_blocked = TF3.db.profile.repeats_blocked + 1 return true end elseif (msg ~= repeatdata[userID].lastmsg) then -- 1.7.9.5