modulemanager: add_feature and add_identity APIs updated to use only the add_item API
--- a/core/modulemanager.lua Tue Aug 18 12:47:37 2009 +0500
+++ b/core/modulemanager.lua Tue Aug 18 12:51:14 2009 +0500
@@ -369,11 +369,9 @@
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
local event_hook = function(host, mod_name, event_name, ...)