aboutsummaryrefslogtreecommitdiffstats
path: root/core/modulemanager.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2015-05-06 19:16:16 +0100
committerMatthew Wild <mwild1@gmail.com>2015-05-06 19:16:16 +0100
commite2d007b44310d3e062451cd7e204fdcbb0d728d2 (patch)
tree9bf06dda8d7ec900db079ca96a47e9ecf9667681 /core/modulemanager.lua
parent88ffd86206943adc4a40efffad49d4f831506f7b (diff)
downloadprosody-e2d007b44310d3e062451cd7e204fdcbb0d728d2.tar.gz
prosody-e2d007b44310d3e062451cd7e204fdcbb0d728d2.zip
modulemanager: Add luacheck annotations
Diffstat (limited to 'core/modulemanager.lua')
-rw-r--r--core/modulemanager.lua7
1 files changed, 4 insertions, 3 deletions
diff --git a/core/modulemanager.lua b/core/modulemanager.lua
index 451838ec..e629b005 100644
--- a/core/modulemanager.lua
+++ b/core/modulemanager.lua
@@ -131,7 +131,7 @@ local function do_load_module(host, module_name, state)
local _log = logger.init(host..":"..module_name);
local host_module_api = setmetatable({
host = host, event_handlers = new_multitable(), items = {};
- _log = _log, log = function (self, ...) return _log(...); end;
+ _log = _log, log = function (self, ...) return _log(...); end; --luacheck: ignore 212/self
},{
__index = modulemap["*"][module_name].module;
});
@@ -152,8 +152,9 @@ local function do_load_module(host, module_name, state)
local _log = logger.init(host..":"..module_name);
local api_instance = setmetatable({ name = module_name, host = host,
- _log = _log, log = function (self, ...) return _log(...); end, event_handlers = new_multitable(),
- reloading = not not state, saved_state = state~=true and state or nil }
+ _log = _log, log = function (self, ...) return _log(...); end, --luacheck: ignore 212/self
+ event_handlers = new_multitable(), reloading = not not state,
+ saved_state = state~=true and state or nil }
, { __index = api });
local pluginenv = setmetatable({ module = api_instance }, { __index = _G });