From 4260af3ba0408f229a92abf8a0d178c44d2e102a Mon Sep 17 00:00:00 2001 From: Brad Morgan Date: Sun, 29 Sep 2024 13:07:04 -0600 Subject: [PATCH] Change print() to (SELECTED_CHAT_FRAME or DEFAULT_CHAT_FRAME):AddMessage(msg) --- DebugAids.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/DebugAids.lua b/DebugAids.lua index c456f07..d384cbe 100644 --- a/DebugAids.lua +++ b/DebugAids.lua @@ -73,6 +73,10 @@ DA.DEBUG_COLOR = "|c00A0FF00" DA.TRACE_COLOR = "|c0000FFA0" DA.WARN_COLOR = "|c0000FFE0" +local function print(msg) + (SELECTED_CHAT_FRAME or DEFAULT_CHAT_FRAME):AddMessage(msg) +end + local function tekD(text) print(text) if tek then