From 1541284108b73abc332a7930eff3dc4d5fc5490b Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Thu, 8 Jun 2023 09:37:01 +0200 Subject: tools: Update imports to use new prosody.* namespace --- tools/migration/migrator/jabberd14.lua | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'tools/migration/migrator') diff --git a/tools/migration/migrator/jabberd14.lua b/tools/migration/migrator/jabberd14.lua index a4eef3f7..7edb887c 100644 --- a/tools/migration/migrator/jabberd14.lua +++ b/tools/migration/migrator/jabberd14.lua @@ -1,7 +1,10 @@ +if not pcall(require, "prosody.loader") then + pcall(require, "loader"); +end local lfs = require "lfs"; -local st = require "util.stanza"; -local parse_xml = require "util.xml".parse; +local st = require "prosody.util.stanza"; +local parse_xml = require "prosody.util.xml".parse; local os_getenv = os.getenv; local io_open = io.open; local assert = assert; -- cgit v1.2.3