Mercurial > prosody-modules
changeset 1584:4713f9d453ec
mod_statistics: Remove 'return' so SESS lines are pushed to all sessions (thanks Ge0rG)
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Mon, 08 Dec 2014 14:27:10 +0100 (2014-12-08) |
parents | c1bb2a64aabb |
children | 64f55bcab9f7 |
files | mod_statistics/mod_statistics.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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