mirror of
https://github.com/bjc/prosody.git
synced 2025-04-04 21:57:45 +03:00
mod_external_services: Validate items as they are added
This commit is contained in:
parent
f53ff863f0
commit
44675f7dbf
1 changed files with 4 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue