patch
Munglunch [08-28-14 - 20:41]
diff --git a/Interface/AddOns/SVUI_StyleOMatic/SVUI_StyleOMatic.lua b/Interface/AddOns/SVUI_StyleOMatic/SVUI_StyleOMatic.lua
index 3d60dd2..f0641ca 100644
--- a/Interface/AddOns/SVUI_StyleOMatic/SVUI_StyleOMatic.lua
+++ b/Interface/AddOns/SVUI_StyleOMatic/SVUI_StyleOMatic.lua
@@ -75,6 +75,7 @@ PLUGIN.OptionsCache = {
},
}
};
+PLUGIN.Debugging = false
--[[
##########################################################
CORE FUNCTIONS
@@ -111,12 +112,13 @@ function PLUGIN:LoadAlert(MainText, Function)
end
function PLUGIN:Style(style, fn, ...)
+ -- self.Debugging = false
local pass, error = pcall(fn, ...)
if(pass and (not style:find("Blizzard")) and not self.StyledAddons[style]) then
self.StyledAddons[style] = true
local verb = charming[math.random(1,#charming)]
self:AddonMessage(styleMessage:format(style, verb))
- else
+ elseif(self.Debugging and error) then
SuperVillain:Debugger(errorMessage:format(version, style, error))
end
end