diff --git a/mods/social-colors.lua b/mods/social-colors.lua index c9d9ceb..3a3851a 100644 --- a/mods/social-colors.lua +++ b/mods/social-colors.lua @@ -20,7 +20,7 @@ local module = ShaguTweaks:register({ module.enable = function(self) do -- add class colors to chat for i=1,NUM_CHAT_WINDOWS do - if not _G["ChatFrame"..i].HookAddMessageColor and not Prat then + if _G["ChatFrame"..i] and not _G["ChatFrame"..i].HookAddMessageColor and not Prat then _G["ChatFrame"..i].HookAddMessageColor = _G["ChatFrame"..i].AddMessage _G["ChatFrame"..i].AddMessage = function(frame, text, a1, a2, a3, a4, a5) if text then