Comparison

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
comparison
equal deleted inserted replaced
1305:b0971d8815bf 1306:63e7e20a0074
92 CONTACTS = " "..table.concat(bad_contacts, "\n "); 92 CONTACTS = " "..table.concat(bad_contacts, "\n ");
93 SERVICES = " "..table.concat(bad_hosts, "\n "); 93 SERVICES = " "..table.concat(bad_hosts, "\n ");
94 CONTACTVIA = contact_method, CONTACT = contact; 94 CONTACTVIA = contact_method, CONTACT = contact;
95 }; 95 };
96 session.send(st.message({ type = "headline", from = host }):tag("body"):text(message:gsub("$(%w+)", vars))); 96 session.send(st.message({ type = "headline", from = host }):tag("body"):text(message:gsub("$(%w+)", vars)));
97 notified[session.username] = now;
97 end 98 end
98 notified[session.username] = now;
99 end); 99 end);
100 end); 100 end);
101 101
102 function module.load() 102 function module.load()
103 notified = dm.load(nil, host, module.name) or {}; 103 notified = dm.load(nil, host, module.name) or {};