moduleapi: module:provides(): Add "-provider" onto the key name
authorMatthew Wild <mwild1@gmail.com>
Mon, 23 Apr 2012 14:10:04 +0100
changeset 4661 76db5d0a2104
parent 4660 96b40b5e8ea8
child 4662 105423f77d46
moduleapi: module:provides(): Add "-provider" onto the key name
core/moduleapi.lua
--- 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)