From 11ba21ccc6137e9a4c9eb51724cdcd6c6e73bd99 Mon Sep 17 00:00:00 2001 From: p3lim-52096 Date: Mon, 25 Aug 2008 23:00:06 +0000 Subject: [PATCH] Some fixes git-svn-id: svn://svn.wowinterface.com/pError-161/trunk@5 7a612bb6-1b7b-4f5f-b58b-e1cc54d1b6b6 --- pError/pError.lua | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/pError/pError.lua b/pError/pError.lua index 5f54b74..d60b81b 100644 --- a/pError/pError.lua +++ b/pError/pError.lua @@ -31,12 +31,13 @@ local blacklist = { 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 -- 1.7.9.5