equal
deleted
inserted
replaced
210 end |
210 end |
211 debug.setmetatable(function() end, mt); |
211 debug.setmetatable(function() end, mt); |
212 end |
212 end |
213 |
213 |
214 function init_global_state() |
214 function init_global_state() |
|
215 prosody.bare_sessions = {}; |
|
216 prosody.full_sessions = {}; |
|
217 prosody.hosts = {}; |
|
218 |
215 -- COMPAT: These globals are deprecated |
219 -- COMPAT: These globals are deprecated |
216 bare_sessions = {}; |
220 bare_sessions = prosody.bare_sessions; |
217 full_sessions = {}; |
221 full_sessions = prosody.full_sessions; |
218 hosts = {}; |
222 hosts = prosody.hosts; |
219 |
|
220 prosody.bare_sessions = bare_sessions; |
|
221 prosody.full_sessions = full_sessions; |
|
222 prosody.hosts = hosts; |
|
223 |
223 |
224 local data_path = config.get("*", "data_path") or CFG_DATADIR or "data"; |
224 local data_path = config.get("*", "data_path") or CFG_DATADIR or "data"; |
225 local custom_plugin_paths = config.get("*", "plugin_paths"); |
225 local custom_plugin_paths = config.get("*", "plugin_paths"); |
226 if custom_plugin_paths then |
226 if custom_plugin_paths then |
227 local path_sep = package.config:sub(3,3); |
227 local path_sep = package.config:sub(3,3); |