diff options
author | Kim Alvefur <zash@zash.se> | 2021-06-21 22:41:59 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2021-06-21 22:41:59 +0200 |
commit | 44675f7dbfbb706d415e7b95c7a5243ac166e45a (patch) | |
tree | 95348fd4d145a080f698f1e584e422933aa89c86 | |
parent | f53ff863f09b78d7cadd6e59cbdb57e70c911828 (diff) | |
download | prosody-44675f7dbfbb706d415e7b95c7a5243ac166e45a.tar.gz prosody-44675f7dbfbb706d415e7b95c7a5243ac166e45a.zip |
mod_external_services: Validate items as they are added
-rw-r--r-- | plugins/mod_external_services.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/mod_external_services.lua b/plugins/mod_external_services.lua index cb917fe8..1aab6380 100644 --- a/plugins/mod_external_services.lua +++ b/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; |