From fe7e404ebececc30970d9a7ba313a82e5f9d5bef Mon Sep 17 00:00:00 2001 From: pigmonkey Date: Tue, 6 Sep 2011 15:34:49 -0400 Subject: [PATCH] Fix bug where alts once online are considered raiders until reload --- modules/guildroster.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/guildroster.lua b/modules/guildroster.lua index 080d020..6156a1a 100644 --- a/modules/guildroster.lua +++ b/modules/guildroster.lua @@ -126,7 +126,7 @@ function mod:CacheRaiders() for i=1,GetNumGuildMembers() do local name, _, rank, _, _, _, note, _, online = GetGuildRosterInfo(i) - if self:IsRaider(i) then + if self:IsRaider(i, true) then rosterRaidersCache[name] = true rosterRaidersCount = rosterRaidersCount + 1 @@ -140,11 +140,11 @@ function mod:CacheRaiders() end end -function mod:IsRaider(index) +function mod:IsRaider(index, noCache) local name, _, rank, _, _, _, note, _, online = GetGuildRosterInfo(index) -- first check cache - if rosterRaidersCache[name] then + if not noCache and rosterRaidersCache[name] then return true end