Changeset

2640:c06c59b99b3c

mod_list_active: Actually invert condition (thanks Dan)
author Kim Alvefur <zash@zash.se>
date Wed, 22 Mar 2017 17:34:16 +0100
parents 2639:bdedf85a3e2e
children 2641:2d83e6c8160b
files mod_list_active/mod_list_active.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mod_list_active/mod_list_active.lua	Wed Mar 22 17:07:18 2017 +0100
+++ b/mod_list_active/mod_list_active.lua	Wed Mar 22 17:34:16 2017 +0100
@@ -42,7 +42,7 @@
 		local last_active = dm.load(user, host, "lastlog");
 		local last_action = last_active and last_active.event or "?"
 		last_active = last_active and last_active.timestamp or 0;
-		if last_active < max_age then
+		if last_active > max_age then
 			print(output:format(jid_join(user, host), last_action));
 		end
 	end