mod_external_services: Validate items as they are added

0.12
Kim Alvefur 5 years ago
parent f53ff863f0
commit 44675f7dbf
  1. 4
      plugins/mod_external_services.lua

@ -107,6 +107,10 @@ function module.load()
end
end
module:handle_items("external_service", function(added)
prepare(added.item);
end, module.load);
-- Ensure only valid items are added in events
local services_mt = {
__index = getmetatable(array()).__index;

Loading…
Cancel
Save