aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/modulemanager.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/modulemanager.lua b/core/modulemanager.lua
index 07a2b1c9..3cf893a1 100644
--- a/core/modulemanager.lua
+++ b/core/modulemanager.lua
@@ -278,6 +278,9 @@ end
function api:add_identity(category, type, name)
self:add_item("identity", {category = category, type = type, name = name});
end
+function api:add_extension(data)
+ self:add_item("extension", data);
+end
function api:fire_event(...)
return (hosts[self.host] or prosody).events.fire_event(...);