Quantcast

Fix GetParty() raid/party exempt list AceTimer issue.(ticket 6++)

Erik L. Vonderscheer [01-27-11 - 23:16]
Fix GetParty() raid/party exempt list AceTimer issue.(ticket 6++)
Filename
TradeFilter3.lua
diff --git a/TradeFilter3.lua b/TradeFilter3.lua
index 6217e9f..e1baff2 100644
--- a/TradeFilter3.lua
+++ b/TradeFilter3.lua
@@ -60,6 +60,8 @@ local lastmsg
 local lastuserID
 local msgsFiltered = 0
 local msgsBlackFiltered = 0
+local raidTimer = false
+local partyTimer = false

 TF3.currentPartyMembers = {}

@@ -275,8 +277,8 @@ function TF3:GetParty(arg)
 					if (TF3.db.profile.debug) then
 						TF3:FindFrame(debugFrame, "|cFFFFFF80" .. L["MIPM"] .. "|r")
 					end
-					if not (self:TimeLeft(self.RaidTimer)) then
-						self.RaidTimer = self:ScheduleTimer("GetParty", 10, "raid")
+					if not (self:TimeLeft(raidTimer)) then
+						raidTimer = self:ScheduleTimer("GetParty", 10, "raid")
 					end
 					break
 				end
@@ -304,8 +306,8 @@ function TF3:GetParty(arg)
 					if (TF3.db.profile.debug) then
 						TF3:FindFrame(debugFrame, "|cFFFFFF80" .. L["MIPM"] .. "|r")
 					end
-					if not (self:TimeLeft(self.PartyTimer)) then
-						self.PartyTimer = self:ScheduleTimer("GetParty", 10, "party")
+					if not (self:TimeLeft(partyTimer)) then
+						partyTimer = self:ScheduleTimer("GetParty", 10, "party")
 					end
 					break
 				end