1
0
Fork 0
mirror of https://github.com/bjc/prosody.git synced 2025-04-03 21:27:38 +03:00

renamening: Fix newly added imports to use the new namespace

This commit is contained in:
Kim Alvefur 2023-06-18 16:48:56 +02:00
parent 597f3c7f0a
commit af2cf5f188
5 changed files with 6 additions and 6 deletions

View file

@ -18,7 +18,7 @@ local url_build = require "socket.url".build;
local http_util = require "prosody.util.http";
local normalize_path = http_util.normalize_path;
local set = require "prosody.util.set";
local array = require "util.array";
local array = require "prosody.util.array";
local ip_util = require "prosody.util.ip";
local new_ip = ip_util.new_ip;

View file

@ -37,7 +37,7 @@ local tostring = tostring;
local time_now = require "prosody.util.time".now;
local m_min = math.min;
local timestamp, datestamp = import( "util.datetime", "datetime", "date");
local parse_duration = require "util.human.io".parse_duration;
local parse_duration = require "prosody.util.human.io".parse_duration;
local default_max_items, max_max_items = 20, module:get_option_number("max_archive_query_results", 50);
local strip_tags = module:get_option_set("dont_archive_namespaces", { "http://jabber.org/protocol/chatstates" });

View file

@ -1,4 +1,4 @@
local events = require "util.events";
local events = require "prosody.util.events";
local fsm_methods = {};
local fsm_mt = { __index = fsm_methods };

View file

@ -1,5 +1,5 @@
local initialize_filters = require "prosody.util.filters".initialize;
local time = require "util.time";
local time = require "prosody.util.time";
local logger = require "prosody.util.logger";
local function new_session(typ)

View file

@ -425,7 +425,7 @@ end
function startup.prepare_to_start()
log("info", "Prosody is using the %s backend for connection handling", server.get_backend());
-- Signal to modules that we are ready to start
prosody.started = require "util.promise".new(function (resolve)
prosody.started = require "prosody.util.promise".new(function (resolve)
prosody.events.add_handler("server-started", function ()
resolve();
end);
@ -479,7 +479,7 @@ function startup.log_greeting()
end
function startup.notify_started()
require "util.timer".add_task(0, function ()
require "prosody.util.timer".add_task(0, function ()
prosody.log("debug", "Firing server-started event");
prosody.events.fire_event("server-started");
end);