From 247a08fbb71df12ec93c431e2b20bd27455a0717 Mon Sep 17 00:00:00 2001 From: Darthpred Date: Mon, 27 Apr 2015 00:08:49 +0400 Subject: [PATCH] Cause why not if it works? --- ElvUI_SLE/modules/chat.lua | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/ElvUI_SLE/modules/chat.lua b/ElvUI_SLE/modules/chat.lua index 0f24bf6..981417c 100644 --- a/ElvUI_SLE/modules/chat.lua +++ b/ElvUI_SLE/modules/chat.lua @@ -219,7 +219,10 @@ function CH:PositionChat(override) end local function GetChatIcon(sender) - if not specialChatIcons then return "" end + if not specialChatIcons then + SLE:GetRegion() + specialChatIcons = SLE.SpecialChatIcons[SLE.region] + end local senderName, senderRealm if sender then senderName, senderRealm = string.split('-', sender) @@ -573,15 +576,13 @@ hooksecurefunc(CH, "StyleChat", Style) hooksecurefunc(E, "UpdateMedia", ChatTextures) hooksecurefunc(CH, "Initialize", function(self) if not E.private.chat.enable then return end - + self:RegisterEvent("GROUP_JOINED", function() E:Delay(5, function() CH:CheckLFGRoles() end) end) - + if E.db.sle.chat.guildmaster then self:RegisterEvent('GUILD_ROSTER_UPDATE', Roster) GMCheck() end - SLE:GetRegion() - specialChatIcons = SLE.SpecialChatIcons[SLE.region] CH:SpamFilter() @@ -597,7 +598,7 @@ hooksecurefunc(CH, "Initialize", function(self) return old(self, link, ...) end end - + self:RegisterEvent("PLAYER_REGEN_ENABLED", "Combat") self:RegisterEvent("PLAYER_REGEN_DISABLED", "Combat") end) \ No newline at end of file -- 1.7.9.5