Software /
code /
prosody
Diff
core/modulemanager.lua @ 4337:a2ee8ab82dd9
core.modulemanager, mod_disco: Add support for XEP-0128: Service Discovery Extensions
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Mon, 08 Aug 2011 18:23:53 +0200 |
parent | 4151:a1ac8f064dcb |
child | 4344:a24ee48ec30d |
line wrap: on
line diff
--- a/core/modulemanager.lua Thu Aug 04 14:00:24 2011 -0400 +++ b/core/modulemanager.lua Mon Aug 08 18:23:53 2011 +0200 @@ -278,6 +278,9 @@ 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(...);