Fix RepeatFunc debugging output
Erik L. Vonderscheer [07-13-09 - 04:56]
Fix RepeatFunc debugging output
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