Changeset

1697:f1783e621a36

modulemanager: Module API functions add_item and add_feature updated to use the add_item API
author Waqas Hussain <waqas20@gmail.com>
date Tue, 18 Aug 2009 12:34:59 +0500
parents 1696:2afc87ccc379
children 1698:af89f646200f
files core/modulemanager.lua
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/core/modulemanager.lua	Tue Aug 18 12:33:43 2009 +0500
+++ b/core/modulemanager.lua	Tue Aug 18 12:34:59 2009 +0500
@@ -368,9 +368,11 @@
 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