From a01ae6f745fd8abd357055116b0cd0b3e344130d Mon Sep 17 00:00:00 2001 From: "Erik L. Vonderscheer" Date: Thu, 16 Jul 2009 05:11:05 +0000 Subject: [PATCH] Fix repeat count Main page update --- Docs/main.txt | 4 ++-- TradeFilter3.lua | 6 +++++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/Docs/main.txt b/Docs/main.txt index cff2754..cd91fd7 100644 --- a/Docs/main.txt +++ b/Docs/main.txt @@ -38,7 +38,7 @@ Adding a set, e.g. [xXyY], will attempt to find a match for any character given TradeFilter also has a build in Black and White list. A sentence, or "string". that contains a black list match will cease to be checked any more and be filtered out completely. A string found that contains a white list match will also cease to be checked and will be allowed to passed un-filtered. === Filtering Priorities -The filtering priorities are as follows: Add-on is ON -> is NOT friend -> is NOT self(unless filtering self for debugging) -> White list check -> Black list check -> Repeat check -> Filter +{{http://static.wowace.com/uploads/19/16/157/TradeFilter_Flowchart.png}} === Configuration <>/tf or /filter<> @@ -47,7 +47,7 @@ The filtering priorities are as follows: Add-on is ON -> is NOT friend -> is NO Nothing planned ==== ChangeLog -[[http://www.wowace.com/addons/trade-filter/pages/main/|ChangeLog Page]]\\ +[[http://www.wowace.com/addons/trade-filter/pages/change-log/|ChangeLog Page]]\\ === Supported Translations //Please help localize this project// [[http://www.wowace.com/projects/trade-filter/localization/|HERE]]\\ diff --git a/TradeFilter3.lua b/TradeFilter3.lua index 65c91d9..47c869f 100644 --- a/TradeFilter3.lua +++ b/TradeFilter3.lua @@ -287,13 +287,17 @@ function TF3:FindRepeat(msg, userID, msgID) if (repeatdata[userID].repeats >= tonumber(TF3.db.profile.num_repeats)) then --@alpha@ if (TF3.db.profile.debug) then + --@end-alpha@ if (msg ~= lastmsg) then + --@alpha@ TF3:FindFrame(repeatFrame, "|cFFFF8C00[" .. L["#RPT"] .. "]|r |cFFD9D9D9[" .. msgID .. "]|r |cFFD9D9D9[" .. userID .. "]:|r |cFFC08080" .. msg .. "|r") + --@end-alpha@ + TF3.db.profile.repeats_blocked = TF3.db.profile.repeats_blocked + 1 lastmsg = msg end + --@alpha@ 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