From 82b393b7fc749a59bcad5bf611e8f8b3efe805bd Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Sat, 27 Apr 2013 19:44:37 +0200 Subject: moduleapi: in module:provides(), add the name of the module in item._provided_by --- core/moduleapi.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'core/moduleapi.lua') diff --git a/core/moduleapi.lua b/core/moduleapi.lua index 764ed52a..ed75669b 100644 --- a/core/moduleapi.lua +++ b/core/moduleapi.lua @@ -335,6 +335,7 @@ function api:provides(name, item) end item.name = item_name; end + item._provided_by = self.name; self:add_item(name.."-provider", item); end -- cgit v1.2.3