diff options
author | Waqas Hussain <waqas20@gmail.com> | 2009-10-13 14:58:45 +0500 |
---|---|---|
committer | Waqas Hussain <waqas20@gmail.com> | 2009-10-13 14:58:45 +0500 |
commit | 157842119d2b2f5ca6ba907e4a55c4da21d3d261 (patch) | |
tree | 63661d65b464dbee66c3c964dcd02e4213cddf35 | |
parent | f266d2acc7ec9f8c0c63eaf3e6da207b0aa85cdf (diff) | |
download | prosody-157842119d2b2f5ca6ba907e4a55c4da21d3d261.tar.gz prosody-157842119d2b2f5ca6ba907e4a55c4da21d3d261.zip |
modulemanager: Changed api:get_host_items to include items from the global host in its result.
-rw-r--r-- | core/modulemanager.lua | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/core/modulemanager.lua b/core/modulemanager.lua index 383b9d37..465b9dd8 100644 --- a/core/modulemanager.lua +++ b/core/modulemanager.lua @@ -408,6 +408,14 @@ function api:get_host_items(key) end end end + for mod_name, module in pairs(modulemap["*"]) do + module = module.module; + if module.items then + for _, item in ipairs(module.items[key] or NULL) do + t_insert(result, item); + end + end + end return result; end |