View Single Post
12/12/21, 11:16 AM   #2
Sharlikran
 
Sharlikran's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 650
This is not tested and not really a proper fix in my opinion but it might help

In SettingsProfiler.lua Change
Code:
--  Load Hook (Runs on either EVENT_ADD_ON_LOADED or EVENT_PLAYER_ACTIVATED, whichever fires later)
--  This function is responsable for setting up CHAT_SYSTEM to accept messages
  local SharedChatSystem_LoadChatFromSettings=SharedChatSystem.LoadChatFromSettings;
  function SharedChatSystem:LoadChatFromSettings(...)
    SharedChatSystem_LoadChatFromSettings(self,...);
    for _,msg in ipairs(MessageBuffer) do CHAT_SYSTEM:AddMessage(msg); end--  Print from Cache
    MessageBuffer=nil;--  Wipe Cache
  end
end
AddOn.Print=print;
Change To
Code:
--  Load Hook (Runs on either EVENT_ADD_ON_LOADED or EVENT_PLAYER_ACTIVATED, whichever fires later)
--  This function is responsable for setting up CHAT_SYSTEM to accept messages
  local SharedChatSystem_LoadChatFromSettings=SharedChatSystem.LoadChatFromSettings;
  function SharedChatSystem:LoadChatFromSettings(...)
    SharedChatSystem_LoadChatFromSettings(self,...);
    if MessageBuffer then
      for _,msg in ipairs(MessageBuffer) do CHAT_SYSTEM:AddMessage(msg); end--  Print from Cache
    end
    MessageBuffer=nil;--  Wipe Cache
  end
end
AddOn.Print=print;
  Reply With Quote