From 67c4a958d66b8da8b0bb432a40934fe680f0db99 Mon Sep 17 00:00:00 2001 From: Darth Predator Date: Sat, 5 Nov 2016 15:39:54 +0300 Subject: [PATCH] Apparently chat history was dumping twice in random order --- ElvUI_SLE/modules/chat/chat.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ElvUI_SLE/modules/chat/chat.lua b/ElvUI_SLE/modules/chat/chat.lua index a2d88cf..c162b75 100644 --- a/ElvUI_SLE/modules/chat/chat.lua +++ b/ElvUI_SLE/modules/chat/chat.lua @@ -259,6 +259,7 @@ function C:IdentifyChatFrames() end end +local firstDump = true function C:UpdateChatMax() if SLE._Compatibility["ElvUI_CustomTweaks"] then return end for _, frameName in T.pairs(_G["CHAT_FRAMES"]) do @@ -267,7 +268,10 @@ function C:UpdateChatMax() end local whisper = E.db.chat.whisperSound E.db.chat.whisperSound = "None" - CH:DisplayChatHistory() + if not firstDump then + CH:DisplayChatHistory() + firstDump = false + end E.db.chat.whisperSound = whisper end hooksecurefunc(CH, "Initialize", C.UpdateChatMax) -- 1.7.9.5