aboutsummaryrefslogtreecommitdiffstats
path: root/tools/migration/migrator
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2023-06-08 09:37:01 +0200
committerKim Alvefur <zash@zash.se>2023-06-08 09:37:01 +0200
commit1541284108b73abc332a7930eff3dc4d5fc5490b (patch)
treeb4cdfc948f6112e9bd47d2b41ff90c358ca57c52 /tools/migration/migrator
parent0d6c625f935a28a94ae8893747d4fdbeb1e53d87 (diff)
downloadprosody-1541284108b73abc332a7930eff3dc4d5fc5490b.tar.gz
prosody-1541284108b73abc332a7930eff3dc4d5fc5490b.zip
tools: Update imports to use new prosody.* namespace
Diffstat (limited to 'tools/migration/migrator')
-rw-r--r--tools/migration/migrator/jabberd14.lua7
1 files changed, 5 insertions, 2 deletions
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;