# HG changeset patch # User Matthew Wild # Date 1598357636 -3600 # Node ID f1f796e551f1aed408273397ddef4fea43da0648 # Parent 4841cf3fded517545234dd749cd47e928d1f6795 mod_http_upload: Log warning when loaded on user host diff -r 4841cf3fded5 -r f1f796e551f1 mod_http_upload/mod_http_upload.lua --- a/mod_http_upload/mod_http_upload.lua Sat Aug 22 18:28:19 2020 +0200 +++ b/mod_http_upload/mod_http_upload.lua Tue Aug 25 13:13:56 2020 +0100 @@ -41,6 +41,10 @@ file_size_limit = parser_body_limit; end +if prosody.hosts[module.host].type == "local" then + module:log("warn", "mod_%s loaded on a user host, this may be incompatible with some client software, see docs for correct usage", module.name); +end + -- depends module:depends("http"); module:depends("disco");