Comparison

tools/migration/migrator/jabberd14.lua @ 13142:879a6a33c21b

tools: Update imports to use new prosody.* namespace
author Kim Alvefur <zash@zash.se>
date Thu, 08 Jun 2023 09:37:01 +0200
parent 7881:4e3067272fae
comparison
equal deleted inserted replaced
13141:451cb119026e 13142:879a6a33c21b
1 1
2 if not pcall(require, "prosody.loader") then
3 pcall(require, "loader");
4 end
2 local lfs = require "lfs"; 5 local lfs = require "lfs";
3 local st = require "util.stanza"; 6 local st = require "prosody.util.stanza";
4 local parse_xml = require "util.xml".parse; 7 local parse_xml = require "prosody.util.xml".parse;
5 local os_getenv = os.getenv; 8 local os_getenv = os.getenv;
6 local io_open = io.open; 9 local io_open = io.open;
7 local assert = assert; 10 local assert = assert;
8 local ipairs = ipairs; 11 local ipairs = ipairs;
9 local coroutine = coroutine; 12 local coroutine = coroutine;