Diff

core/modulemanager.lua @ 1706:0e6ba1678d8e

modulemanager: add_feature and add_identity APIs updated to use only the add_item API
author Waqas Hussain <waqas20@gmail.com>
date Tue, 18 Aug 2009 12:51:14 +0500
parent 1698:af89f646200f
child 1707:c55aa091f42a
line wrap: on
line diff
--- 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, ...)