refactoring

This commit is contained in:
Manuel Simon Hirsig
2016-10-15 00:11:30 +02:00
parent be5244fd8d
commit 977c619fad
+8 -5
View File
@@ -9,11 +9,14 @@ local CHECK_INTERVAL = .1
npcscan_targets = {}
function npcscan.without_errors(f)
local orig = UIErrorsFrame.AddMessage
UIErrorsFrame.AddMessage = function() end
f()
UIErrorsFrame.AddMessage = orig
do
local nop = function() end
function npcscan.without_errors(f)
local orig = UIErrorsFrame.AddMessage
UIErrorsFrame.AddMessage = nop
f()
UIErrorsFrame.AddMessage = orig
end
end
do