# HG changeset patch # User Kim Alvefur # Date 1677182833 -3600 # Node ID 556bf57d64174d7d68d18f7ca17a452ce2234920 # Parent f6b5f04d4b28024824d1f1b4fade9f357524e591 mod_register_apps: Detect 0.12+ when called from prosodyctl Otherwise it loads mod_http_files which logs a warning diff -r f6b5f04d4b28 -r 556bf57d6417 mod_register_apps/mod_register_apps.lua --- 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