Diff

mod_c2s_conn_throttle/mod_c2s_conn_throttle.lua @ 1343:7dbde05b48a9

all the things: Remove trailing whitespace
author Florian Zeitz <florob@babelmonkeys.de>
date Tue, 11 Mar 2014 18:44:01 +0100
parent 929:9eefbaba274d
child 5810:e79f9dec35c0
line wrap: on
line diff
--- a/mod_c2s_conn_throttle/mod_c2s_conn_throttle.lua	Mon Mar 10 08:22:58 2014 +0000
+++ b/mod_c2s_conn_throttle/mod_c2s_conn_throttle.lua	Tue Mar 11 18:44:01 2014 +0100
@@ -13,7 +13,7 @@
 		in_count[session.ip] = { t = time(), c = 1 }
 	elseif in_count[session.ip] and session.type == "c2s_unauthed" then
 		if in_count[session.ip].starttls_c then in_count[session.ip].c = in_count[session.ip].starttls_c else in_count[session.ip].c = in_count[session.ip].c + 1 end
-		
+
 		if in_count[session.ip].c > logins_count and time() - in_count[session.ip].t < throttle_time then
 			module:log("error", "Exceeded login count for %s, closing connection", session.ip)
 			session:close{ condition = "policy-violation", text = "You exceeded the number of connections/logins allowed in "..throttle_time.." seconds, good bye." }
@@ -21,7 +21,7 @@
 		elseif time() - in_count[session.ip].t > throttle_time then
 			in_count[session.ip] = nil ; return
 		end
-	end	
+	end
 end
 
 local function check_starttls(event)