# HG changeset patch # User Kim Alvefur # Date 1371325390 -3600 # Node ID 164ed759b1d255b6d864e135ea08beedb72b4142 # Parent cccd9f6a628d42136fec7f3bd00c4b07f1c6acc7 mod_statistics/stats.lib.lua: Better check for prosody vs prosodyctl diff -r cccd9f6a628d -r 164ed759b1d2 mod_statistics/stats.lib.lua --- 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 = {