Diff

core/moduleapi.lua @ 5530:d83482fc4a81

moduleapi: in module:provides(), add the name of the module in item._provided_by
author Kim Alvefur <zash@zash.se>
date Sat, 27 Apr 2013 19:44:37 +0200
parent 5529:af58eea131b4
child 5771:c4ed6680bf8d
line wrap: on
line diff
--- a/core/moduleapi.lua	Sat Apr 27 19:14:22 2013 +0200
+++ b/core/moduleapi.lua	Sat Apr 27 19:44:37 2013 +0200
@@ -335,6 +335,7 @@
 		end
 		item.name = item_name;
 	end
+	item._provided_by = self.name;
 	self:add_item(name.."-provider", item);
 end