Comparison

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
comparison
equal deleted inserted replaced
4336:abcbcb15205c 4337:a2ee8ab82dd9
276 self:add_item("feature", xmlns); 276 self:add_item("feature", xmlns);
277 end 277 end
278 function api:add_identity(category, type, name) 278 function api:add_identity(category, type, name)
279 self:add_item("identity", {category = category, type = type, name = name}); 279 self:add_item("identity", {category = category, type = type, name = name});
280 end 280 end
281 function api:add_extension(data)
282 self:add_item("extension", data);
283 end
281 284
282 function api:fire_event(...) 285 function api:fire_event(...)
283 return (hosts[self.host] or prosody).events.fire_event(...); 286 return (hosts[self.host] or prosody).events.fire_event(...);
284 end 287 end
285 288