# HG changeset patch # User Waqas Hussain # Date 1250581874 -18000 # Node ID 0e6ba1678d8e9660a68d777fe27f814f58ea1e93 # Parent 99c9f59ed365235fe7f5847158467ede19339ff3 modulemanager: add_feature and add_identity APIs updated to use only the add_item API diff -r 99c9f59ed365 -r 0e6ba1678d8e core/modulemanager.lua --- 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, ...)