Comparison

core/sessionmanager.lua @ 12972:ead41e25ebc0

core: Prefix module imports with prosody namespace
author Kim Alvefur <zash@zash.se>
date Fri, 17 Mar 2023 16:23:07 +0100
parent 12880:b56a2731bf00
child 13008:7b952553bd60
comparison
equal deleted inserted replaced
12971:7214baed9e9d 12972:ead41e25ebc0
12 12
13 local prosody, hosts = prosody, prosody.hosts; 13 local prosody, hosts = prosody, prosody.hosts;
14 local full_sessions = prosody.full_sessions; 14 local full_sessions = prosody.full_sessions;
15 local bare_sessions = prosody.bare_sessions; 15 local bare_sessions = prosody.bare_sessions;
16 16
17 local logger = require "util.logger"; 17 local logger = require "prosody.util.logger";
18 local log = logger.init("sessionmanager"); 18 local log = logger.init("sessionmanager");
19 local rm_load_roster = require "core.rostermanager".load_roster; 19 local rm_load_roster = require "prosody.core.rostermanager".load_roster;
20 local config_get = require "core.configmanager".get; 20 local config_get = require "prosody.core.configmanager".get;
21 local resourceprep = require "util.encodings".stringprep.resourceprep; 21 local resourceprep = require "prosody.util.encodings".stringprep.resourceprep;
22 local nodeprep = require "util.encodings".stringprep.nodeprep; 22 local nodeprep = require "prosody.util.encodings".stringprep.nodeprep;
23 local generate_identifier = require "util.id".short; 23 local generate_identifier = require "prosody.util.id".short;
24 local sessionlib = require "util.session"; 24 local sessionlib = require "prosody.util.session";
25 25
26 local initialize_filters = require "util.filters".initialize; 26 local initialize_filters = require "prosody.util.filters".initialize;
27 local gettime = require "socket".gettime; 27 local gettime = require "socket".gettime;
28 28
29 local _ENV = nil; 29 local _ENV = nil;
30 -- luacheck: std none 30 -- luacheck: std none
31 31