changeset 2509:34ec7bde5203

mod_mam: Add annotations [luacheck]
author Kim Alvefur <zash@zash.se>
date Mon, 20 Feb 2017 00:06:28 +0100 (2017-02-19)
parents 03f6d9ed2903
children d81882aa0e1e
files mod_mam/mamprefs.lib.lua
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mod_mam/mamprefs.lib.lua	Mon Feb 20 00:05:48 2017 +0100
+++ b/mod_mam/mamprefs.lib.lua	Mon Feb 20 00:06:28 2017 +0100
@@ -2,10 +2,12 @@
 -- Copyright (C) 2011-2013 Kim Alvefur
 --
 -- This file is MIT/X11 licensed.
+-- luacheck: ignore 122/prosody
 
 local global_default_policy = module:get_option("default_archive_policy", true);
 
 do
+	-- luacheck: ignore 211/prefs_format
 	local prefs_format = {
 		[false] = "roster",
 		-- default ::= true | false | "roster"
@@ -15,7 +17,7 @@
 	};
 end
 
-local sessions = hosts[module.host].sessions;
+local sessions = prosody.hosts[module.host].sessions;
 local prefs = module:open_store("archive2_prefs");
 
 local function get_prefs(user)