Changeset

1316:28ae044f1aaf

mod_console: Some "improvements" to the useless server:reload() command :)
author Matthew Wild <mwild1@gmail.com>
date Fri, 05 Jun 2009 20:18:19 +0100
parents 1315:bfcd3f0a49df
children 1317:f6e56a555c37
files plugins/mod_console.lua
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/mod_console.lua	Fri Jun 05 19:57:29 2009 +0100
+++ b/plugins/mod_console.lua	Fri Jun 05 20:18:19 2009 +0100
@@ -140,7 +140,9 @@
 
 def_env.server = {};
 function def_env.server:reload()
+	prosody.unlock_globals();
 	dofile "prosody"
+	prosody = _G.prosody;
 	return true, "Server reloaded";
 end