aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2021-06-21 22:41:59 +0200
committerKim Alvefur <zash@zash.se>2021-06-21 22:41:59 +0200
commit44675f7dbfbb706d415e7b95c7a5243ac166e45a (patch)
tree95348fd4d145a080f698f1e584e422933aa89c86 /plugins
parentf53ff863f09b78d7cadd6e59cbdb57e70c911828 (diff)
downloadprosody-44675f7dbfbb706d415e7b95c7a5243ac166e45a.tar.gz
prosody-44675f7dbfbb706d415e7b95c7a5243ac166e45a.zip
mod_external_services: Validate items as they are added
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_external_services.lua4
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;