Diff

init.lua @ 490:6b2f31da9610

Update for new Prosody module namespace
author Kim Alvefur <zash@zash.se>
date Sat, 20 May 2023 20:48:03 +0200
parent 465:6707e3a47f71
child 492:22844ac3be4e
line wrap: on
line diff
--- a/init.lua	Tue May 23 19:46:52 2023 +0200
+++ b/init.lua	Sat May 20 20:48:03 2023 +0200
@@ -7,11 +7,12 @@
 -- Load LuaSec if available
 pcall(require, "ssl");
 
-local server = require "net.server";
-local events = require "util.events";
-local logger = require "util.logger";
+local server = require "prosody.net.server_select";
+package.loaded["prosody.net.server"] = server; -- XXX
+local events = require "prosody.util.events";
+local logger = require "prosody.util.logger";
 
-local format = require "util.format".format;
+local format = require "prosody.util.format".format;
 
 local verse = {};
 verse.server = server;
@@ -46,7 +47,7 @@
 	return t;
 end
 
-verse.add_task = require "util.timer".add_task;
+verse.add_task = require "prosody.util.timer".add_task;
 
 verse.logger = logger.init; -- COMPAT: Deprecated
 verse.new_logger = logger.init;