Software /
code /
prosody-modules
Diff
mod_manifesto/mod_manifesto.lua @ 1306:63e7e20a0074
mod_manifesto: Only keep track of who we sent notifications to
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Mon, 17 Feb 2014 16:08:40 +0100 |
parent | 1305:b0971d8815bf |
child | 1307:71dd991c94e7 |
line wrap: on
line diff
--- a/mod_manifesto/mod_manifesto.lua Mon Feb 17 12:11:36 2014 +0100 +++ b/mod_manifesto/mod_manifesto.lua Mon Feb 17 16:08:40 2014 +0100 @@ -94,8 +94,8 @@ CONTACTVIA = contact_method, CONTACT = contact; }; session.send(st.message({ type = "headline", from = host }):tag("body"):text(message:gsub("$(%w+)", vars))); + notified[session.username] = now; end - notified[session.username] = now; end); end);