Software /
code /
prosody
Comparison
core/modulemanager.lua @ 12451:76887863a6ae
Merge 0.12->trunk
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Mon, 04 Apr 2022 19:10:05 +0200 |
parent | 12450:7efd4bcaa95c |
child | 12972:ead41e25ebc0 |
comparison
equal
deleted
inserted
replaced
12449:6ec3fbae05c9 | 12451:76887863a6ae |
---|---|
187 elseif modulemap["*"][module_name] then | 187 elseif modulemap["*"][module_name] then |
188 local mod = modulemap["*"][module_name]; | 188 local mod = modulemap["*"][module_name]; |
189 if module_has_method(mod, "add_host") then | 189 if module_has_method(mod, "add_host") then |
190 local _log = logger.init(host..":"..module_name); | 190 local _log = logger.init(host..":"..module_name); |
191 local host_module_api = setmetatable({ | 191 local host_module_api = setmetatable({ |
192 global = false, | |
192 host = host, event_handlers = new_multitable(), items = {}; | 193 host = host, event_handlers = new_multitable(), items = {}; |
193 _log = _log, log = function (self, ...) return _log(...); end; --luacheck: ignore 212/self | 194 _log = _log, log = function (self, ...) return _log(...); end; --luacheck: ignore 212/self |
194 },{ | 195 },{ |
195 __index = modulemap["*"][module_name].module; | 196 __index = modulemap["*"][module_name].module; |
196 }); | 197 }); |