Changeset

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
parents 1305:b0971d8815bf
children 1307:71dd991c94e7
files mod_manifesto/mod_manifesto.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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);