Software /
code /
prosody
Changeset
1946:0eb3835ef9bf
modulemanager: Changed api:get_host_items to include items from the global host in its result.
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Tue, 13 Oct 2009 14:58:45 +0500 |
parents | 1945:adfd7f3720f5 |
children | 1948:50128afa7858 |
files | core/modulemanager.lua |
diffstat | 1 files changed, 8 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/core/modulemanager.lua Sat Oct 10 03:09:15 2009 +0100 +++ b/core/modulemanager.lua Tue Oct 13 14:58:45 2009 +0500 @@ -408,6 +408,14 @@ 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