aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_console.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/mod_console.lua b/plugins/mod_console.lua
index b960deb9..bae106fd 100644
--- a/plugins/mod_console.lua
+++ b/plugins/mod_console.lua
@@ -140,7 +140,9 @@ end
def_env.server = {};
function def_env.server:reload()
+ prosody.unlock_globals();
dofile "prosody"
+ prosody = _G.prosody;
return true, "Server reloaded";
end