Quantcast

Update to 30000

p3lim-52096 [10-14-08 - 18:42]
Update to 30000

git-svn-id: svn://svn.wowinterface.com/pError-161/trunk@6 7a612bb6-1b7b-4f5f-b58b-e1cc54d1b6b6
Filename
pError/pError.lua
pError/pError.toc
diff --git a/pError/pError.lua b/pError/pError.lua
index d60b81b..e47ac78 100644
--- a/pError/pError.lua
+++ b/pError/pError.lua
@@ -31,13 +31,13 @@ local blacklist = {
 	ERR_NOEMOTEWHILERUNNING,        -- You can't do that while moving!
 }

-local last
 local orig = UIErrorsFrame_OnEvent
 function UIErrorsFrame_OnEvent(event, msg, ...)
-	last = msg
-	for i,text in pairs(blacklist) do
-		if(text and msg and msg == text) then return end
+	for _,listed in ipairs(blacklist) do
+		if(list and msg) then
+			if(msg == text) then return end
+		end
 	end
-	if(msg and msg == last) then return end
+
 	return orig(event, msg, ...)
 end
\ No newline at end of file
diff --git a/pError/pError.toc b/pError/pError.toc
index 5fa807c..23c8724 100644
--- a/pError/pError.toc
+++ b/pError/pError.toc
@@ -1,6 +1,6 @@
-## Interface: 20400
+## Interface: 30000
 ## Author: p3lim
-## Version: Revision wowi:revision
+## Version: 30000.wowi:revision
 ## Title: |cffff6000p|rError
 ## Notes: Hide those pesky errors!