Code:
local function AddMessage(frame, text, red, green, blue, id)
--text = tostring(text) or ''
--text = text:gsub('%[Guild%].+(|Hplayer.+)', '[G] %1')
--text = text:gsub('%[Party%].+(|Hplayer.+)', '[P] %1')
--text = text:gsub('%[Raid%].+(|Hplayer.+)', '[R] %1')
--text = text:gsub('%[Raid Leader%].+(|Hplayer.+)', '[R] %1')
--text = text:gsub('%[Raid Warning%].+(|Hplayer.+)', '[!] %1')
--text = text:gsub('%[Officer%].+(|Hplayer.+)', '[O] %1')
--text = text:gsub('%[Battleground%].+(|Hplayer.+)', '[b] %1')
--text = text:gsub('%[Battleground Leader%].+(|Hplayer.+)', '[!] %1')
--text = text:gsub('%[(%d+)%. .+%].+(|Hplayer.+)', '[%1] %2')
--text = text:gsub('|Hplayer:(.-)|h%[.-%]|h.-:', '|Hplayer:%1|h%1|h:')
--text = '|cdddddddd' .. date('%H:%M') .. '|r ' .. text
return hooks[frame](frame, text, red, green, blue, id)
end
It's commented out so I can use the rest of the addon.