Changeset

1695:9786e650393b

modulemanager: Changed the add_identity module API to accept an optional name parameter (the 'name' attribute for the <identity/> element)
author Waqas Hussain <waqas20@gmail.com>
date Tue, 18 Aug 2009 12:32:38 +0500
parents 1694:0b7888c0995d
children 1696:2afc87ccc379
files core/modulemanager.lua
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/core/modulemanager.lua	Tue Aug 18 12:30:06 2009 +0500
+++ b/core/modulemanager.lua	Tue Aug 18 12:32:38 2009 +0500
@@ -370,8 +370,8 @@
 function api:add_feature(xmlns)
 	features_table:set(self.host, self.name, xmlns, true);
 end
-function api:add_identity(category, type)
-	identities_table:set(self.host, self.name, category.."\0"..type, {category = category, type = type});
+function api:add_identity(category, type, 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, ...)