Quantcast

Remove timeout handling

Adrian L Lange [03-31-13 - 02:30]
Remove timeout handling
Filename
HabeebIt.lua
diff --git a/HabeebIt.lua b/HabeebIt.lua
index 88b6d06..b749150 100644
--- a/HabeebIt.lua
+++ b/HabeebIt.lua
@@ -236,16 +236,10 @@ Frame:SetScript('OnEvent', function(self, event, ...)
 				print('|cffff8080HabeebIt:|r Found an unused spell [' .. spellID .. ']. Please report this!')
 			end
 		end
-	elseif(event == 'SPELL_CONFIRMATION_TIMEOUT') then
-		local _, confirmType = ...
-		if(confirmType == CONFIRMATION_PROMPT_BONUS_ROLL) then
-			currentEncounterID = nil
-		end
-	elseif(event == 'EJ_LOOT_DATA_RECEIVED' and currentEncounterID) then
+	elseif(event == 'EJ_LOOT_DATA_RECEIVED' and BonusRollFrame:IsShown()) then
 		PopulateList()
 	elseif(event == 'PLAYER_LOGIN') then
 		self:RegisterEvent('SPELL_CONFIRMATION_PROMPT')
-		self:RegisterEvent('SPELL_CONFIRMATION_TIMEOUT')
 		self:RegisterEvent('EJ_LOOT_DATA_RECEIVED')

 		self:SetPoint('BOTTOMLEFT', BonusRollFrame, 'BOTTOMRIGHT')