Mercurial > prosody-modules
diff mod_register_apps/mod_register_apps.lua @ 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 | eb3f99d0e72d |
children | e06af1403a60 |
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