Software /
code /
prosody
Diff
tools/openfire2prosody.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 | 5776:bd0ff8ae98a8 |
line wrap: on
line diff
--- a/tools/openfire2prosody.lua Sat Jun 10 13:06:05 2023 +0200 +++ b/tools/openfire2prosody.lua Thu Jun 08 09:37:01 2023 +0200 @@ -15,6 +15,10 @@ package.cpath = package.cpath..";"..my_name:gsub("[^/\\]+$", "../?.so"); end +if not pcall(require, "prosody.loader") then + pcall(require, "loader"); +end + -- ugly workaround for getting datamanager to work outside of prosody :( prosody = { }; prosody.platform = "unknown"; @@ -24,12 +28,12 @@ prosody.platform = "posix"; end -local parse_xml = require "util.xml".parse; +local parse_xml = require "prosody.util.xml".parse; ----------------------------------------------------------------------- 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 arg = ...;