Changeset

495:1ca531495c3d

squishy: Move some compat layers into verse namespace This way, if the prosody libraries are available, they could be used from the verse compat layres
author Kim Alvefur <zash@zash.se>
date Wed, 21 Jun 2023 21:03:05 +0200
parents 493:08e5c8637fea
children 496:c4ae7aa2958a
files squishy
diffstat 1 files changed, 6 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/squishy	Wed Jun 21 15:22:17 2023 +0200
+++ b/squishy	Wed Jun 21 21:03:05 2023 +0200
@@ -7,11 +7,6 @@
 
 function ProsodyModules()
 	local Module = ProsodyModule;
-	-- Verse-specific versions of libraries
-	Module "util.encodings" "libs/encodings.lua"
-	Module "util.hashes" "libs/hashes.lua"
-	Module "lib.adhoc" "libs/adhoc.lib.lua"
-	Module "util.table" "libs/table.lua"
 
 	-- Prosody libraries
 	if not GetOption("prosody") then
@@ -121,6 +116,12 @@
 	VerseModule("verse.plugins." .. plugin)("plugins/" .. plugin .. ".lua")
 end
 
+-- Verse-specific versions of libraries
+VerseModule "verse.util.adhoc" "libs/adhoc.lib.lua"
+VerseModule "verse.util.encodings" "libs/encodings.lua"
+VerseModule "verse.util.hashes" "libs/hashes.lua"
+VerseModule "verse.util.table" "libs/table.lua"
+
 VerseModule "verse.server" "server.lua"
 
 -- SASL client mechanisms