Skip to content

Commit

Permalink
Change print() to (SELECTED_CHAT_FRAME or DEFAULT_CHAT_FRAME):AddMess…
Browse files Browse the repository at this point in the history
…age(msg)
  • Loading branch information
b-morgan committed Sep 29, 2024
1 parent b3f9023 commit 4260af3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions DebugAids.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4260af3

Please sign in to comment.