aboutsummaryrefslogtreecommitdiffstats
path: root/tools/jabberd14sql2prosody.lua
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/jabberd14sql2prosody.lua
parent0d6c625f935a28a94ae8893747d4fdbeb1e53d87 (diff)
downloadprosody-1541284108b73abc332a7930eff3dc4d5fc5490b.tar.gz
prosody-1541284108b73abc332a7930eff3dc4d5fc5490b.zip
tools: Update imports to use new prosody.* namespace
Diffstat (limited to 'tools/jabberd14sql2prosody.lua')
-rw-r--r--tools/jabberd14sql2prosody.lua11
1 files changed, 7 insertions, 4 deletions
diff --git a/tools/jabberd14sql2prosody.lua b/tools/jabberd14sql2prosody.lua
index d1d66dc1..12658e50 100644
--- a/tools/jabberd14sql2prosody.lua
+++ b/tools/jabberd14sql2prosody.lua
@@ -1,4 +1,7 @@
#!/usr/bin/env lua
+if not pcall(require, "prosody.loader") then
+ pcall(require, "loader");
+end
do
@@ -447,13 +450,13 @@ elseif package.config:sub(1,1) == "/" then
end
package.loaded["util.logger"] = {init = function() return function() end; end}
-local dm = require "util.datamanager";
+local dm = require "prosody.util.datamanager";
dm.set_data_path("data");
-local datetime = require "util.datetime";
+local datetime = require "prosody.util.datetime";
-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;
function store_password(username, host, password)
-- create or update account for username@host