diff options
author | Kim Alvefur <zash@zash.se> | 2016-04-05 20:41:50 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2016-04-05 20:41:50 +0200 |
commit | bf3fdda165bf8010773da1ee58bb3e7237044b40 (patch) | |
tree | 863a6cb5bae387aeda56098865886c3733c49ebc | |
parent | 74da8121560d32ef64f3cc567aa7911184f129d0 (diff) | |
download | prosody-bf3fdda165bf8010773da1ee58bb3e7237044b40.tar.gz prosody-bf3fdda165bf8010773da1ee58bb3e7237044b40.zip |
server_event: Split long list of assignments into multiple lines for readability
-rw-r--r-- | net/server_event.lua | 11 |
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 |