mod_list_active: Actually invert condition (thanks Dan)

Wed, 22 Mar 2017 17:34:16 +0100

author
Kim Alvefur <zash@zash.se>
date
Wed, 22 Mar 2017 17:34:16 +0100
changeset 2640
c06c59b99b3c
parent 2639
bdedf85a3e2e
child 2641
2d83e6c8160b

mod_list_active: Actually invert condition (thanks Dan)

mod_list_active/mod_list_active.lua file | annotate | diff | comparison | revisions
--- 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

mercurial