Diff

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
line wrap: on
line diff
--- a/plugins/mod_invites.lua	Mon Dec 27 20:46:34 2021 +0100
+++ b/plugins/mod_invites.lua	Wed Jan 05 20:43:18 2022 +0100
@@ -242,7 +242,7 @@
 	local mm = require "core.modulemanager";
 
 	local host = arg[1];
-	assert(hosts[host], "Host "..tostring(host).." does not exist");
+	assert(prosody.hosts[host], "Host "..tostring(host).." does not exist");
 	sm.initialize_host(host);
 	table.remove(arg, 1); -- pop host
 	module.host = host; --luacheck: ignore 122/module