Changeset

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
parents 5529:af58eea131b4
children 5531:483f795f6f99
files core/moduleapi.lua
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
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