# HG changeset patch # User Kim Alvefur # Date 1418045230 -3600 # Node ID 4713f9d453ec98873b6e39589ede94aadcf6f6bf # Parent c1bb2a64aabbaf07e36eaab25b3d3fa65a9e6434 mod_statistics: Remove 'return' so SESS lines are pushed to all sessions (thanks Ge0rG) diff -r c1bb2a64aabb -r 4713f9d453ec mod_statistics/mod_statistics.lua --- a/mod_statistics/mod_statistics.lua Sat Dec 06 17:42:51 2014 +0100 +++ b/mod_statistics/mod_statistics.lua Mon Dec 08 14:27:10 2014 +0100 @@ -44,7 +44,7 @@ stats.bytes_in, stats.bytes_out); local jid = session[jid_fields[session.type]] or ""; for conn in pairs(sessions) do - return conn:write(("SESS %q %q %s\n"):format(id, jid, s)); + conn:write(("SESS %q %q %s\n"):format(id, jid, s)); end end