From 55c94f8fe5f20f26d3b86053b991f164fab9a6e2 Mon Sep 17 00:00:00 2001 From: Darthpred Date: Wed, 22 Apr 2015 21:31:23 +0400 Subject: [PATCH] re-enable chat history for testing --- ElvUI_SLE/modules/chat.lua | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ElvUI_SLE/modules/chat.lua b/ElvUI_SLE/modules/chat.lua index c35a311..5f9a5bc 100644 --- a/ElvUI_SLE/modules/chat.lua +++ b/ElvUI_SLE/modules/chat.lua @@ -219,6 +219,7 @@ function CH:PositionChat(override) end local function GetChatIcon(sender) + if not specialChatIcons then return "" end local senderName, senderRealm if sender then senderName, senderRealm = string.split('-', sender) @@ -564,6 +565,13 @@ hooksecurefunc(CH, "StyleChat", Style) hooksecurefunc(E, "UpdateMedia", ChatTextures) hooksecurefunc(CH, "Initialize", function(self) if not E.private.chat.enable then return end + + if self.db.chatHistory then + self.SoundPlayed = true; + self:DisplayChatHistory() + self.SoundPlayed = nil; + end + if E.db.sle.chat.guildmaster then self:RegisterEvent('GUILD_ROSTER_UPDATE', Roster) GMCheck() -- 1.7.9.5