social-colors: disable chatcolor if prat is active

This commit is contained in:
shagu
2021-08-24 19:10:54 +02:00
parent ed0a9917de
commit 002b956670
+1 -1
View File
@@ -17,7 +17,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 then
if 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)
for name in gfind(text, "|Hplayer:(.-)|h") do