Diff

core/moduleapi.lua @ 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
parent 4660:96b40b5e8ea8
child 4663:24524d70a50a
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)