View Single Post
12/14/21, 03:51 AM   #4
HHamp78
 
HHamp78's Avatar
Join Date: Dec 2021
Posts: 5
Originally Posted by Sharlikran View Post
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;
I had a similar problem and this solution fixed it. Thanks!
  Reply With Quote