# HG changeset patch # User Kim Alvefur # Date 1510961687 -3600 # Node ID 45380b77303d5057f7aa2fd53cb293997ae31788 # Parent ed26608920d47080b8f95bec48d2affececc0ce0 mod_auth_external: Split long lines [luacheck] diff -r ed26608920d4 -r 45380b77303d mod_auth_external/mod_auth_external.lua --- a/mod_auth_external/mod_auth_external.lua Fri Nov 17 16:30:53 2017 +0100 +++ b/mod_auth_external/mod_auth_external.lua Sat Nov 18 00:34:47 2017 +0100 @@ -24,7 +24,8 @@ local blocking = module:get_option_boolean("external_auth_blocking", not(have_async and server.event and lpty.getfd)); local auth_processes = module:get_option_number("external_auth_processes", 1); -assert(script_type == "ejabberd" or script_type == "generic", "Config error: external_auth_protocol must be 'ejabberd' or 'generic'"); +assert(script_type == "ejabberd" or script_type == "generic", + "Config error: external_auth_protocol must be 'ejabberd' or 'generic'"); assert(not host:find(":"), "Invalid hostname"); @@ -108,7 +109,8 @@ (script_type == "generic" and response:gsub("\r?\n$", "") == "1") then return true; else - log("warn", "Unable to interpret data from auth process, %s", (response:match("^error:") and response) or ("["..#response.." bytes]")); + log("warn", "Unable to interpret data from auth process, %s", + (response:match("^error:") and response) or ("["..#response.." bytes]")); return nil, "internal-server-error"; end end