Skip to content

Commit

Permalink
fix: fallback to last chat window if none was given
Browse files Browse the repository at this point in the history
  • Loading branch information
SamMousa committed Oct 22, 2022
1 parent 15a7c4b commit fa315a7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .luacheckrc
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ globals = {
-- Saved Variable
"CLM_DB",
"CLM_Logs",
-- WoW
-- WoW
"_G",

-- FrameXML misc
Expand Down Expand Up @@ -3011,6 +3011,7 @@ globals = {
"KBSystem_GetMOTD",
"KBSystem_GetServerNotice",
"KBSystem_GetServerStatus",
"LAST_ACTIVE_CHAT_EDIT_BOX",
"LFGTeleport",
"LearnPvpTalent",
"LearnPvpTalents",
Expand Down
2 changes: 1 addition & 1 deletion source/SlashCommands.lua
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ end


local function handleTimeTravelCommand(msg, source)
local pprint = printer(source, "ffff0000")
local pprint = printer(source or LAST_ACTIVE_CHAT_EDIT_BOX:GetParent(), "ffff0000")

This comment has been minimized.

Copy link
@ferronn-dev

ferronn-dev Oct 23, 2022

FYI, this doesn't fix the issue. The problem isn't a nil source, it's a source editbox with no chatFrame field.

This comment has been minimized.

Copy link
@SamMousa

SamMousa Oct 24, 2022

Author Owner

Ah, thanks. I guess I misunderstood @lantisnt.


-- parse the message.
local buffer = msg
Expand Down

0 comments on commit fa315a7

Please sign in to comment.