Software /
code /
verse
Comparison
squishy @ 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 |
parent | 493:08e5c8637fea |
child | 497:eb86e3751978 |
comparison
equal
deleted
inserted
replaced
493:08e5c8637fea | 495:1ca531495c3d |
---|---|
5 return VerseModule("prosody." .. s) | 5 return VerseModule("prosody." .. s) |
6 end | 6 end |
7 | 7 |
8 function ProsodyModules() | 8 function ProsodyModules() |
9 local Module = ProsodyModule; | 9 local Module = ProsodyModule; |
10 -- Verse-specific versions of libraries | |
11 Module "util.encodings" "libs/encodings.lua" | |
12 Module "util.hashes" "libs/hashes.lua" | |
13 Module "lib.adhoc" "libs/adhoc.lib.lua" | |
14 Module "util.table" "libs/table.lua" | |
15 | 10 |
16 -- Prosody libraries | 11 -- Prosody libraries |
17 if not GetOption("prosody") then | 12 if not GetOption("prosody") then |
18 AutoFetchURL "http://hg.prosody.im/0.10/raw-file/tip/?" | 13 AutoFetchURL "http://hg.prosody.im/0.10/raw-file/tip/?" |
19 else | 14 else |
119 | 114 |
120 for _, plugin in ipairs(plugins) do | 115 for _, plugin in ipairs(plugins) do |
121 VerseModule("verse.plugins." .. plugin)("plugins/" .. plugin .. ".lua") | 116 VerseModule("verse.plugins." .. plugin)("plugins/" .. plugin .. ".lua") |
122 end | 117 end |
123 | 118 |
119 -- Verse-specific versions of libraries | |
120 VerseModule "verse.util.adhoc" "libs/adhoc.lib.lua" | |
121 VerseModule "verse.util.encodings" "libs/encodings.lua" | |
122 VerseModule "verse.util.hashes" "libs/hashes.lua" | |
123 VerseModule "verse.util.table" "libs/table.lua" | |
124 | |
124 VerseModule "verse.server" "server.lua" | 125 VerseModule "verse.server" "server.lua" |
125 | 126 |
126 -- SASL client mechanisms | 127 -- SASL client mechanisms |
127 VerseModule "verse.util.sasl.scram" "util/sasl/scram.lua" | 128 VerseModule "verse.util.sasl.scram" "util/sasl/scram.lua" |
128 VerseModule "verse.util.sasl.plain" "util/sasl/plain.lua" | 129 VerseModule "verse.util.sasl.plain" "util/sasl/plain.lua" |