aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--plugins/mod_invites.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_invites.lua b/plugins/mod_invites.lua
index 8933b2bd..bf8cddec 100644
--- a/plugins/mod_invites.lua
+++ b/plugins/mod_invites.lua
@@ -242,7 +242,7 @@ function module.command(arg)
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