aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2016-11-20 11:30:26 +0100
committerKim Alvefur <zash@zash.se>2016-11-20 11:30:26 +0100
commit850f75497ad96223d58399257b94b0fa6db048ce (patch)
tree41c935c809d43c87453eeccbae2b5c72528ca02c
parentbd940f0f8cc76802ced47ed71c039186a225bc58 (diff)
downloadprosody-850f75497ad96223d58399257b94b0fa6db048ce.tar.gz
prosody-850f75497ad96223d58399257b94b0fa6db048ce.zip
prosody: Set session tables on the 'prosody' global first, then export them as globals
-rwxr-xr-xprosody14
1 files changed, 7 insertions, 7 deletions
diff --git a/prosody b/prosody
index 9cc32cee..ad9b04cb 100755
--- a/prosody
+++ b/prosody
@@ -212,14 +212,14 @@ function set_function_metatable()
end
function init_global_state()
- -- COMPAT: These globals are deprecated
- bare_sessions = {};
- full_sessions = {};
- hosts = {};
+ prosody.bare_sessions = {};
+ prosody.full_sessions = {};
+ prosody.hosts = {};
- prosody.bare_sessions = bare_sessions;
- prosody.full_sessions = full_sessions;
- prosody.hosts = hosts;
+ -- COMPAT: These globals are deprecated
+ bare_sessions = prosody.bare_sessions;
+ full_sessions = prosody.full_sessions;
+ hosts = prosody.hosts;
local data_path = config.get("*", "data_path") or CFG_DATADIR or "data";
local custom_plugin_paths = config.get("*", "plugin_paths");