Diff

mod_manifesto/mod_manifesto.lua @ 2887:65082d91950e

Many modules: Simplify st.message(…):tag("body"):text(…):up() into st.message(…, …)
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Sat, 17 Feb 2018 08:42:10 +0100
parent 1325:b21236b6b8d8
line wrap: on
line diff
--- a/mod_manifesto/mod_manifesto.lua	Tue Feb 20 17:30:17 2018 +0100
+++ b/mod_manifesto/mod_manifesto.lua	Sat Feb 17 08:42:10 2018 +0100
@@ -103,7 +103,7 @@
 				SERVICES = "    "..table.concat(bad_hosts, "\n    ");
 				CONTACTVIA = contact_method, CONTACT = contact;
 			};
-			session.send(st.message({ type = "headline", from = host }):tag("body"):text(message:gsub("$(%w+)", vars)));
+			session.send(st.message({ type = "headline", from = host }, message:gsub("$(%w+)", vars)));
 			notified[session.username] = now;
 		end
 	end);