Software /
code /
prosody-modules
Diff
mod_statistics/stats.lib.lua @ 1075:164ed759b1d2
mod_statistics/stats.lib.lua: Better check for prosody vs prosodyctl
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 15 Jun 2013 20:43:10 +0100 |
parent | 1072:4dbdb1b465e8 |
child | 1076:5616cab8b6d6 |
line wrap: on
line diff
--- a/mod_statistics/stats.lib.lua Sat Jun 15 20:36:23 2013 +0100 +++ b/mod_statistics/stats.lib.lua Sat Jun 15 20:43:10 2013 +0100 @@ -71,7 +71,7 @@ }; local add_statistics_filter; -- forward decl -if prosody and prosody.full_sessions then -- start_time ensures we aren't in prosodyctl +if prosody and prosody.arg then -- ensures we aren't in prosodyctl setmetatable(active_sessions, { __index = function ( t, k ) local v = {