aboutsummaryrefslogtreecommitdiffstats
path: root/net/server_event.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2016-04-05 20:41:50 +0200
committerKim Alvefur <zash@zash.se>2016-04-05 20:41:50 +0200
commit5c224f9d182a770df51727fbad0798c8e9fe9b31 (patch)
tree863a6cb5bae387aeda56098865886c3733c49ebc /net/server_event.lua
parentdc117b2dc54a395a73a1d6da2ce44fde8c35d821 (diff)
downloadprosody-5c224f9d182a770df51727fbad0798c8e9fe9b31.tar.gz
prosody-5c224f9d182a770df51727fbad0798c8e9fe9b31.zip
server_event: Split long list of assignments into multiple lines for readability
Diffstat (limited to 'net/server_event.lua')
-rw-r--r--net/server_event.lua11
1 files changed, 7 insertions, 4 deletions
diff --git a/net/server_event.lua b/net/server_event.lua
index 4589c947..0c3c4b04 100644
--- a/net/server_event.lua
+++ b/net/server_event.lua
@@ -409,10 +409,13 @@ end
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