diff options
author | Kim Alvefur <zash@zash.se> | 2016-11-20 11:30:26 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2016-11-20 11:30:26 +0100 |
commit | c24e0667ef9c5066d9b5a795d9999c46237faad3 (patch) | |
tree | 41c935c809d43c87453eeccbae2b5c72528ca02c | |
parent | e1a956fc242ba18aaad6ba4c1162eb565c5c91ce (diff) | |
download | prosody-c24e0667ef9c5066d9b5a795d9999c46237faad3.tar.gz prosody-c24e0667ef9c5066d9b5a795d9999c46237faad3.zip |
prosody: Set session tables on the 'prosody' global first, then export them as globals
-rwxr-xr-x | prosody | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -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"); |