From 7c7bba46319aa4a8c9fcd644afc9ca41b6417b41 Mon Sep 17 00:00:00 2001 From: Darthpred Date: Fri, 22 Feb 2013 22:41:10 +0400 Subject: [PATCH] Spam throttle now works even if module is not enabled (wasn't able to test cause servers went ofline) --- ElvUI_SLE/modules/equipmanager/equipmanager.lua | 2 +- ElvUI_SLE/modules/equipmanager/options.lua | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) 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 }, -- 1.7.9.5