Software /
code /
prosody
Comparison
prosodyctl @ 12954:4f2accd99373
executables: Invoke loader to allow mixing of old and new import style
Now both require"util.foo" and require"prosody.util.foo" should be
equivalent.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 17 Mar 2023 16:29:07 +0100 |
parent | 12864:9f9633364044 |
child | 12971:7214baed9e9d |
comparison
equal
deleted
inserted
replaced
12953:ebe3b2f96cad | 12954:4f2accd99373 |
---|---|
47 -- Check before first require, to preempt the probable failure | 47 -- Check before first require, to preempt the probable failure |
48 if _VERSION < "Lua 5.2" then | 48 if _VERSION < "Lua 5.2" then |
49 io.stderr:write("Prosody is no longer compatible with Lua 5.1\n") | 49 io.stderr:write("Prosody is no longer compatible with Lua 5.1\n") |
50 io.stderr:write("See https://prosody.im/doc/depends#lua for more information\n") | 50 io.stderr:write("See https://prosody.im/doc/depends#lua for more information\n") |
51 return os.exit(1); | 51 return os.exit(1); |
52 end | |
53 | |
54 if not pcall(require, "prosody.loader") then | |
55 pcall(require, "loader"); | |
52 end | 56 end |
53 | 57 |
54 local startup = require "util.startup"; | 58 local startup = require "util.startup"; |
55 startup.prosodyctl(); | 59 startup.prosodyctl(); |
56 | 60 |