Mercurial > prosody-modules
diff mod_statistics/mod_statistics.lua @ 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 |
parents | 7dbde05b48a9 |
children | d7c014f91189 |
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