diff options
author | Waqas Hussain <waqas20@gmail.com> | 2012-09-13 00:32:12 +0500 |
---|---|---|
committer | Waqas Hussain <waqas20@gmail.com> | 2012-09-13 00:32:12 +0500 |
commit | 48a297e80c605ac4b47a03e25fd1ccc33f4ba4c5 (patch) | |
tree | 57d3d41468b9846ef35968f3d5713c866c9401cb /core/modulemanager.lua | |
parent | aff71e544ec119a81412f2b583c4de5fbe532fb5 (diff) | |
download | prosody-48a297e80c605ac4b47a03e25fd1ccc33f4ba4c5.tar.gz prosody-48a297e80c605ac4b47a03e25fd1ccc33f4ba4c5.zip |
hostmanager, modulemanager: Ensure hosts[*].modules always exists.
Diffstat (limited to 'core/modulemanager.lua')
-rw-r--r-- | core/modulemanager.lua | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/core/modulemanager.lua b/core/modulemanager.lua index 9c5e4a4a..b0d54caa 100644 --- a/core/modulemanager.lua +++ b/core/modulemanager.lua @@ -119,10 +119,7 @@ local function do_load_module(host, module_name) end if not modulemap[host] then - modulemap[host] = {}; - if host ~= "*" then - hosts[host].modules = modulemap[host]; - end + modulemap[host] = hosts[host].modules; end if modulemap[host][module_name] then |