diff options
author | Matthew Wild <mwild1@gmail.com> | 2012-04-23 14:09:35 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2012-04-23 14:09:35 +0100 |
commit | 5b5c8c83b395e259924d28f14b65133bb9a5791c (patch) | |
tree | ace6f47c41ab0923d01def5edede84a117d32732 /core | |
parent | c065013cedb83885226e5870a34cf4c2add53450 (diff) | |
download | prosody-5b5c8c83b395e259924d28f14b65133bb9a5791c.tar.gz prosody-5b5c8c83b395e259924d28f14b65133bb9a5791c.zip |
moduleapi: module:provides(): Fix usage of wrong table
Diffstat (limited to 'core')
-rw-r--r-- | core/moduleapi.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/moduleapi.lua b/core/moduleapi.lua index 7a3bd1c8..61926017 100644 --- a/core/moduleapi.lua +++ b/core/moduleapi.lua @@ -298,7 +298,7 @@ end function api:provides(name, item) if not item then item = self.environment; end if not item.name then - local item_name = module.name; + local item_name = self.name; -- Strip a provider prefix to find the item name -- (e.g. "auth_foo" -> "foo" for an auth provider) if item_name:find(name.."_", 1, true) == 1 then |