Software /
code /
prosody
Comparison
plugins/mod_console.lua @ 1556:8154aa1fbe6c
mod_console: Rename server:reload() to server:insane_reload() (basically no-one should use it except me...)
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sat, 18 Jul 2009 15:11:10 +0100 |
parent | 1523:841d61be198f |
child | 1558:e15917530285 |
comparison
equal
deleted
inserted
replaced
1555:96d620b639d5 | 1556:8154aa1fbe6c |
---|---|
158 | 158 |
159 -- Session environment -- | 159 -- Session environment -- |
160 -- Anything in def_env will be accessible within the session as a global variable | 160 -- Anything in def_env will be accessible within the session as a global variable |
161 | 161 |
162 def_env.server = {}; | 162 def_env.server = {}; |
163 function def_env.server:reload() | 163 function def_env.server:insane_reload() |
164 prosody.unlock_globals(); | 164 prosody.unlock_globals(); |
165 dofile "prosody" | 165 dofile "prosody" |
166 prosody = _G.prosody; | 166 prosody = _G.prosody; |
167 return true, "Server reloaded"; | 167 return true, "Server reloaded"; |
168 end | 168 end |