aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2013-04-27 19:44:37 +0200
committerKim Alvefur <zash@zash.se>2013-04-27 19:44:37 +0200
commit80e781d06c8b638b3e2d676d53d3da9bdef23bf1 (patch)
treeac26dd93751bc5ff1526d9340600edb24f19bbbd /core
parenteb042df81641a9bac12af595c9de9764140e770d (diff)
downloadprosody-80e781d06c8b638b3e2d676d53d3da9bdef23bf1.tar.gz
prosody-80e781d06c8b638b3e2d676d53d3da9bdef23bf1.zip
moduleapi: in module:provides(), add the name of the module in item._provided_by
Diffstat (limited to 'core')
-rw-r--r--core/moduleapi.lua1
1 files changed, 1 insertions, 0 deletions
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