2
2
mirror of https://github.com/Hilbis/Hilbish synced 2025-04-11 08:03:22 +00:00

7 lines
184 B
Lua

local bait = require 'bait'
bait.catch('command.exit', function(_, cmd, priv)
if not cmd then return end
if not priv and hilbish.opts.history then hilbish.history.add(cmd) end
end)