Quantcast

Spam throttle now works even if module is not enabled (wasn't able to test cause servers went ofline)

Darthpred [02-22-13 - 18:41]
Spam throttle now works even if module is not enabled (wasn't able to test cause servers went ofline)
Filename
ElvUI_SLE/modules/equipmanager/equipmanager.lua
ElvUI_SLE/modules/equipmanager/options.lua
diff --git a/ElvUI_SLE/modules/equipmanager/equipmanager.lua b/ElvUI_SLE/modules/equipmanager/equipmanager.lua
index c22d1b0..a7b994c 100644
--- a/ElvUI_SLE/modules/equipmanager/equipmanager.lua
+++ b/ElvUI_SLE/modules/equipmanager/equipmanager.lua
@@ -75,9 +75,9 @@ function EM:SpamThrottle()
 end

 function EM:Initialize()
+	EM:SpamThrottle()
 	if not E.private.sle.equip.enable then return end
 	EM:FillTable()
-	EM:SpamThrottle()
 	self:RegisterEvent("PLAYER_ENTERING_WORLD", "Equip")
 	self:RegisterEvent("ACTIVE_TALENT_GROUP_CHANGED", "Equip")
 	self:RegisterEvent("PLAYER_TALENT_UPDATE", "Equip")
diff --git a/ElvUI_SLE/modules/equipmanager/options.lua b/ElvUI_SLE/modules/equipmanager/options.lua
index ac9a33d..07b3db6 100644
--- a/ElvUI_SLE/modules/equipmanager/options.lua
+++ b/ElvUI_SLE/modules/equipmanager/options.lua
@@ -25,7 +25,6 @@ E.Options.args.sle.args.equipmanager = {
 			order = 3,
 			name = L['Spam Throttling'],
 			desc = L["Removes the spam from chat stating what talents were learned or unlearned during spec change."],
-			disabled = function() return not E.private.sle.equip.enable end,
 			get = function(info) return E.private.sle.equip.spam end,
 			set = function(info, value) E.private.sle.equip.spam = value; EM:SpamThrottle() end
 		},