Software /
code /
prosody-modules
Diff
mod_list_active/mod_list_active.lua @ 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 |
parent | 2637:39c39844cd4c |
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