WoWInterface SVN pError

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /
    from Rev 4 to Rev 5
    Reverse comparison

Rev 4 → Rev 5

trunk/pError/pError.lua
31,12 → 31,13
ERR_NOEMOTEWHILERUNNING, -- You can't do that while moving!
}
 
local lastEvent
local oldUIErrorsFrame_OnEvent = UIErrorsFrame_OnEvent
local last
local orig = UIErrorsFrame_OnEvent
function UIErrorsFrame_OnEvent(event, msg, ...)
for _,text in pairs(blacklist) do
last = msg
for i,text in pairs(blacklist) do
if(text and msg and msg == text) then return end
end
if(msg and msg == lastEvent) then return end
return oldUIErrorsFrame_OnEvent(event, msg, ...)
if(msg and msg == last) then return end
return orig(event, msg, ...)
end
\ No newline at end of file