Software /
code /
prosody
Comparison
plugins/mod_invites.lua @ 12143:51b7ade94d50
mod_invites: Silence luacheck warning
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Wed, 05 Jan 2022 20:43:18 +0100 |
parent | 12142:87532eebd0b8 |
child | 12151:669d93f1db6a |
comparison
equal
deleted
inserted
replaced
12142:87532eebd0b8 | 12143:51b7ade94d50 |
---|---|
240 | 240 |
241 local sm = require "core.storagemanager"; | 241 local sm = require "core.storagemanager"; |
242 local mm = require "core.modulemanager"; | 242 local mm = require "core.modulemanager"; |
243 | 243 |
244 local host = arg[1]; | 244 local host = arg[1]; |
245 assert(hosts[host], "Host "..tostring(host).." does not exist"); | 245 assert(prosody.hosts[host], "Host "..tostring(host).." does not exist"); |
246 sm.initialize_host(host); | 246 sm.initialize_host(host); |
247 table.remove(arg, 1); -- pop host | 247 table.remove(arg, 1); -- pop host |
248 module.host = host; --luacheck: ignore 122/module | 248 module.host = host; --luacheck: ignore 122/module |
249 token_storage = module:open_store("invite_token", "map"); | 249 token_storage = module:open_store("invite_token", "map"); |
250 | 250 |