changeset 2827:45380b77303d

mod_auth_external: Split long lines [luacheck]
author Kim Alvefur <zash@zash.se>
date Sat, 18 Nov 2017 00:34:47 +0100
parents ed26608920d4
children 3ba36b66f297
files mod_auth_external/mod_auth_external.lua
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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