Comparison

mod_invites/mod_invites.lua @ 4342:84e60c3d6e61

mod_invites: Fix luacheck warning
author Matthew Wild <mwild1@gmail.com>
date Sun, 17 Jan 2021 12:47:56 +0000
parent 4341:a104440c20a4
child 4344:844cfc8c4039
comparison
equal deleted inserted replaced
4341:a104440c20a4 4342:84e60c3d6e61
221 221
222 local host = arg[1]; 222 local host = arg[1];
223 assert(hosts[host], "Host "..tostring(host).." does not exist"); 223 assert(hosts[host], "Host "..tostring(host).." does not exist");
224 sm.initialize_host(host); 224 sm.initialize_host(host);
225 table.remove(arg, 1); -- pop host 225 table.remove(arg, 1); -- pop host
226 module.host = host; 226 module.host = host; --luacheck: ignore 122/module
227 token_storage = module:open_store("invite_token", "map"); 227 token_storage = module:open_store("invite_token", "map");
228 228
229 -- Load mod_invites 229 -- Load mod_invites
230 local invites = module:depends("invites"); 230 local invites = module:depends("invites");
231 local invites_page_module = module:get_option_string("invites_page_module", "invites_page"); 231 local invites_page_module = module:get_option_string("invites_page_module", "invites_page");