mod_statistics/stats.lib.lua: Better check for prosody vs prosodyctl
authorKim Alvefur <zash@zash.se>
Sat, 15 Jun 2013 20:43:10 +0100
changeset 1075 164ed759b1d2
parent 1074 cccd9f6a628d
child 1076 5616cab8b6d6
mod_statistics/stats.lib.lua: Better check for prosody vs prosodyctl
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 = {