Changeset

5178:556bf57d6417

mod_register_apps: Detect 0.12+ when called from prosodyctl Otherwise it loads mod_http_files which logs a warning
author Kim Alvefur <zash@zash.se>
date Thu, 23 Feb 2023 21:07:13 +0100
parents 5177:f6b5f04d4b28
children 5179:5be04d1b16fb
files mod_register_apps/mod_register_apps.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mod_register_apps/mod_register_apps.lua	Wed Feb 22 13:39:01 2023 +0100
+++ b/mod_register_apps/mod_register_apps.lua	Thu Feb 23 21:07:13 2023 +0100
@@ -1,7 +1,7 @@
 -- luacheck: ignore 631
 module:depends("http");
 local http_files
-if prosody.process_type == "prosody" then
+if prosody.process_type then
 	-- Prosody >= 0.12
 	http_files = require "net.http.files";
 else