Changeset

4661:76db5d0a2104

moduleapi: module:provides(): Add "-provider" onto the key name
author Matthew Wild <mwild1@gmail.com>
date Mon, 23 Apr 2012 14:10:04 +0100
parents 4660:96b40b5e8ea8
children 4662:105423f77d46
files core/moduleapi.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/core/moduleapi.lua	Mon Apr 23 14:09:35 2012 +0100
+++ b/core/moduleapi.lua	Mon Apr 23 14:10:04 2012 +0100
@@ -306,7 +306,7 @@
 		end
 		item.name = item_name;
 	end
-	self:add_item(name, item);
+	self:add_item(name.."-provider", item);
 end
 
 function api:send(stanza)