Software /
code /
prosody
Comparison
plugins/mod_console.lua @ 461:8e66201f566a
Load prosody instead of main.lia in mod_console
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Sat, 29 Nov 2008 06:08:37 +0500 |
parent | 444:77485b9b840c |
child | 519:cccd610a0ef9 |
comparison
equal
deleted
inserted
replaced
460:95d2001d0aab | 461:8e66201f566a |
---|---|
122 -- Session environment -- | 122 -- Session environment -- |
123 -- Anything in def_env will be accessible within the session as a global variable | 123 -- Anything in def_env will be accessible within the session as a global variable |
124 | 124 |
125 def_env.server = {}; | 125 def_env.server = {}; |
126 function def_env.server:reload() | 126 function def_env.server:reload() |
127 dofile "main.lua" | 127 dofile "prosody" |
128 return true, "Server reloaded"; | 128 return true, "Server reloaded"; |
129 end | 129 end |
130 | 130 |
131 def_env.module = {}; | 131 def_env.module = {}; |
132 function def_env.module:load(name, host, config) | 132 function def_env.module:load(name, host, config) |