diff mod_tcpproxy/mod_tcpproxy.lua @ 1343:7dbde05b48a9

all the things: Remove trailing whitespace
author Florian Zeitz <florob@babelmonkeys.de>
date Tue, 11 Mar 2014 18:44:01 +0100
parents 10c3f6c6a04c
children db8b256f51ff
line wrap: on
line diff
--- a/mod_tcpproxy/mod_tcpproxy.lua	Mon Mar 10 08:22:58 2014 +0000
+++ b/mod_tcpproxy/mod_tcpproxy.lua	Tue Mar 11 18:44:01 2014 +0100
@@ -30,7 +30,7 @@
 
 function proxy_component(origin, stanza)
 	local ibb_tag = stanza.tags[1];
-	if (not (stanza.name == "iq" and stanza.attr.type == "set") 
+	if (not (stanza.name == "iq" and stanza.attr.type == "set")
 		and stanza.name ~= "message")
 		or
 		(not (ibb_tag)
@@ -40,7 +40,7 @@
 		end
 		return;
 	end
-	
+
 	if ibb_tag.name == "open" then
 		-- Starting a new stream
 		local to_host, to_port = ibb_tag.attr[host_attr], ibb_tag.attr[port_attr];
@@ -57,12 +57,12 @@
 			return origin.send(st.error_reply(stanza, "wait", "resource-constraint", err));
 		end
 		conn:settimeout(0);
-		
+
 		local success, err = conn:connect(to_host, to_port);
 		if not success and err ~= "timeout" then
 			return origin.send(st.error_reply(stanza, "wait", "remote-server-not-found", err));
 		end
-		
+
 		local listener,seq = {}, 0;
 		function listener.onconnect(conn)
 			origin.send(st.reply(stanza));
@@ -78,7 +78,7 @@
 				:tag("close", {xmlns=xmlns_ibb,sid=sid}));
 			close_session(jid, sid);
 		end
-		
+
 		conn = server.wrapclient(conn, to_host, to_port, listener, "*a" );
 		new_session(jid, sid, conn);
 	elseif ibb_tag.name == "data" then