Changeset

7337:8ec935687bae

server_event: Split long list of assignments into multiple lines for readability
author Kim Alvefur <zash@zash.se>
date Tue, 05 Apr 2016 20:41:50 +0200
parents 7336:0d9ac472e58c
children 7338:f8d37227acd7 7339:b5565715fce8
files net/server_event.lua
diffstat 1 files changed, 7 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/net/server_event.lua	Tue Apr 05 20:39:36 2016 +0200
+++ b/net/server_event.lua	Tue Apr 05 20:41:50 2016 +0200
@@ -409,10 +409,13 @@
 
 function interface_mt:setlistener(listener)
 	self:ondetach(); -- Notify listener that it is no longer responsible for this connection
-	self.onconnect, self.ondisconnect, self.onincoming, self.ontimeout,
-	self.onreadtimeout, self.onstatus, self.ondetach
-		= listener.onconnect, listener.ondisconnect, listener.onincoming, listener.ontimeout,
-		  listener.onreadtimeout, listener.onstatus, listener.ondetach;
+	self.onconnect = listener.onconnect;
+	self.ondisconnect = listener.ondisconnect;
+	self.onincoming = listener.onincoming;
+	self.ontimeout = listener.ontimeout;
+	self.onreadtimeout = listener.onreadtimeout;
+	self.onstatus = listener.onstatus;
+	self.ondetach = listener.ondetach;
 end
 
 -- Stub handlers