aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2009-08-18 12:32:38 +0500
committerWaqas Hussain <waqas20@gmail.com>2009-08-18 12:32:38 +0500
commit49c8f89be2673c78954a9d8731d434ebc3861819 (patch)
tree6e837549466530487219eab1ff723ccd8ffbe0a7
parent3900d20a7cacdfc3c9c72e0da7836954ef6a3511 (diff)
downloadprosody-49c8f89be2673c78954a9d8731d434ebc3861819.tar.gz
prosody-49c8f89be2673c78954a9d8731d434ebc3861819.zip
modulemanager: Changed the add_identity module API to accept an optional name parameter (the 'name' attribute for the <identity/> element)
-rw-r--r--core/modulemanager.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/modulemanager.lua b/core/modulemanager.lua
index bc779d76..a2c28070 100644
--- a/core/modulemanager.lua
+++ b/core/modulemanager.lua
@@ -370,8 +370,8 @@ end);
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, ...)