aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2017-03-04 20:09:28 +0100
committerKim Alvefur <zash@zash.se>2017-03-04 20:09:28 +0100
commit91d2b2518f3e3d047dc43f59db3f7025d29ab86c (patch)
treec6228dea80fc393abf6eaf11909eca109d0cd30e /core
parent31e05635fa945b69a730ea8858829df636e59153 (diff)
downloadprosody-91d2b2518f3e3d047dc43f59db3f7025d29ab86c.tar.gz
prosody-91d2b2518f3e3d047dc43f59db3f7025d29ab86c.zip
core: Allow select core modules to mutate some globals (needs luacheck 1.19)
Diffstat (limited to 'core')
-rw-r--r--core/loggingmanager.lua2
-rw-r--r--core/rostermanager.lua2
-rw-r--r--core/sessionmanager.lua1
3 files changed, 3 insertions, 2 deletions
diff --git a/core/loggingmanager.lua b/core/loggingmanager.lua
index e3a83817..14305588 100644
--- a/core/loggingmanager.lua
+++ b/core/loggingmanager.lua
@@ -5,7 +5,7 @@
-- This project is MIT/X11 licensed. Please see the
-- COPYING file in the source package for more information.
--
-
+-- luacheck: globals log prosody.log
local format = string.format;
local setmetatable, rawset, pairs, ipairs, type =
diff --git a/core/rostermanager.lua b/core/rostermanager.lua
index 88bd1e66..dc60ccdf 100644
--- a/core/rostermanager.lua
+++ b/core/rostermanager.lua
@@ -5,7 +5,7 @@
-- This project is MIT/X11 licensed. Please see the
-- COPYING file in the source package for more information.
--
-
+-- luacheck: globals prosody.bare_sessions.?.roster
diff --git a/core/sessionmanager.lua b/core/sessionmanager.lua
index c5b08098..f7f36ae3 100644
--- a/core/sessionmanager.lua
+++ b/core/sessionmanager.lua
@@ -5,6 +5,7 @@
-- This project is MIT/X11 licensed. Please see the
-- COPYING file in the source package for more information.
--
+-- luacheck: globals prosody.full_sessions prosody.bare_sessions
local tostring, setmetatable = tostring, setmetatable;
local pairs, next= pairs, next;