# HG changeset patch # User Kim Alvefur # Date 1479637826 -3600 # Node ID f8b81a82e8b63701916c8319381bb27bda2743cd # Parent da54ad64f6dac8d104858980c24f4ee3cb16f924 prosody: Set session tables on the 'prosody' global first, then export them as globals diff -r da54ad64f6da -r f8b81a82e8b6 prosody --- a/prosody Sun Nov 20 11:15:10 2016 +0100 +++ b/prosody Sun Nov 20 11:30:26 2016 +0100 @@ -212,14 +212,14 @@ end function init_global_state() + prosody.bare_sessions = {}; + prosody.full_sessions = {}; + prosody.hosts = {}; + -- COMPAT: These globals are deprecated - bare_sessions = {}; - full_sessions = {}; - hosts = {}; - - prosody.bare_sessions = bare_sessions; - prosody.full_sessions = full_sessions; - prosody.hosts = hosts; + 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");