diff options
author | Kim Alvefur <zash@zash.se> | 2013-04-27 19:44:37 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2013-04-27 19:44:37 +0200 |
commit | 183a21b4ad88e262013278217345864b39c7fa16 (patch) | |
tree | ac26dd93751bc5ff1526d9340600edb24f19bbbd /core/moduleapi.lua | |
parent | 3e21305cb4a3ecbab4987883b6dfaac6f86b2906 (diff) | |
download | prosody-183a21b4ad88e262013278217345864b39c7fa16.tar.gz prosody-183a21b4ad88e262013278217345864b39c7fa16.zip |
moduleapi: in module:provides(), add the name of the module in item._provided_by
Diffstat (limited to 'core/moduleapi.lua')
-rw-r--r-- | core/moduleapi.lua | 1 |
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 |