diff options
author | Waqas Hussain <waqas20@gmail.com> | 2009-08-18 12:34:59 +0500 |
---|---|---|
committer | Waqas Hussain <waqas20@gmail.com> | 2009-08-18 12:34:59 +0500 |
commit | d772917f2d53a40d2478e6e65fa5b20ed2ee5581 (patch) | |
tree | 6101ff7003a7f8bc84c54972ecd60211f35ac34a /core/modulemanager.lua | |
parent | 2c1d3e4499cf93cd3ff69a843a3db9ef8f9e67cc (diff) | |
download | prosody-d772917f2d53a40d2478e6e65fa5b20ed2ee5581.tar.gz prosody-d772917f2d53a40d2478e6e65fa5b20ed2ee5581.zip |
modulemanager: Module API functions add_item and add_feature updated to use the add_item API
Diffstat (limited to 'core/modulemanager.lua')
-rw-r--r-- | core/modulemanager.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/modulemanager.lua b/core/modulemanager.lua index a2c28070..ff31271b 100644 --- a/core/modulemanager.lua +++ b/core/modulemanager.lua @@ -368,9 +368,11 @@ addDiscoInfoHandler("*host", function(reply, to, from, node) end); function api:add_feature(xmlns) + self:add_item("feature", xmlns); features_table:set(self.host, self.name, xmlns, true); end function api:add_identity(category, type, name) + self:add_item("identity", {category = category, type = type, name = name}); identities_table:set(self.host, self.name, category.."\0"..type, {category = category, type = type, name = name}); end |