Software /
code /
prosody
Comparison
plugins/mod_console.lua @ 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 |
parent | 1315:bfcd3f0a49df |
child | 1317:f6e56a555c37 |
comparison
equal
deleted
inserted
replaced
1315:bfcd3f0a49df | 1316:28ae044f1aaf |
---|---|
138 -- Session environment -- | 138 -- Session environment -- |
139 -- Anything in def_env will be accessible within the session as a global variable | 139 -- Anything in def_env will be accessible within the session as a global variable |
140 | 140 |
141 def_env.server = {}; | 141 def_env.server = {}; |
142 function def_env.server:reload() | 142 function def_env.server:reload() |
143 prosody.unlock_globals(); | |
143 dofile "prosody" | 144 dofile "prosody" |
145 prosody = _G.prosody; | |
144 return true, "Server reloaded"; | 146 return true, "Server reloaded"; |
145 end | 147 end |
146 | 148 |
147 def_env.module = {}; | 149 def_env.module = {}; |
148 | 150 |