Quantcast

Blizzard changed the error handler, fixed :P

Xruptor [10-20-16 - 18:49]
Blizzard changed the error handler, fixed :P
Filename
xanErrorDevourer.lua
diff --git a/xanErrorDevourer.lua b/xanErrorDevourer.lua
index 56fd3c6..a6c3a18 100644
--- a/xanErrorDevourer.lua
+++ b/xanErrorDevourer.lua
@@ -77,7 +77,8 @@ end

 --Nom-Nom-Nom Errors!
 local originalOnEvent = UIErrorsFrame:GetScript("OnEvent")
-UIErrorsFrame:SetScript("OnEvent", function(self, event, msg, r, g, b, ...)
+UIErrorsFrame:SetScript("OnEvent", function(self, event, num, msg, r, g, b, ...)
+
 	--only allow errors that aren't in our list
 	if msg then

@@ -91,7 +92,7 @@ UIErrorsFrame:SetScript("OnEvent", function(self, event, msg, r, g, b, ...)
 		end

 		--return original
-		return originalOnEvent(self, event, msg, r, g, b, ...)
+		return originalOnEvent(self, event, num, msg, r, g, b, ...)
 	end
 end)