Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lua/easychat/client/macro_processor.lua
Original file line number Diff line number Diff line change
Expand Up @@ -199,11 +199,11 @@ function macro_processor:LoadSavedMacros()
local json = file.Read(path, "DATA")

local macro = util.JSONToTable(json)
if macro.IsLua and not self:CompileLuaMacro(macro) then return end
if not macro or macro.IsLua and not self:CompileLuaMacro(macro) then return end
self.Macros[macro_name] = macro
end
end

macro_processor:LoadSavedMacros()

return macro_processor
return macro_processor