mirror of
https://github.com/zoriya/lz.n.git
synced 2026-05-30 09:50:56 +00:00
chore: simplify LzPluginHandler type
This commit is contained in:
@@ -151,8 +151,9 @@ end
|
||||
|
||||
---@param plugin LzPlugin
|
||||
function M.add(plugin)
|
||||
-- TODO add plugin to M.pending
|
||||
for _, event in pairs(plugin.event or {}) do
|
||||
M.pending[event.id] = M.pending[event.id] or {}
|
||||
M.pending[event.id][plugin.name] = plugin.name
|
||||
add_event(event)
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user