mod_watchuntrusted/mod_watchuntrusted.lua
changeset 2891 65082d91950e
parent 2814 9a3e51f348fe
child 3024 ec671ad1a8a9
--- a/mod_watchuntrusted/mod_watchuntrusted.lua	Tue Feb 20 17:30:17 2018 +0100
+++ b/mod_watchuntrusted/mod_watchuntrusted.lua	Sat Feb 17 08:42:10 2018 +0100
@@ -49,11 +49,10 @@
 			errors = error_message
 		};
 
-		local message = st.message{ type = "chat", from = local_host }
-			:tag("body")
-				:text(untrusted_fail_notification:gsub("%$([%w_]+)", function (v)
-					return event[v] or session and session[v] or replacements and replacements[v] or nil;
-				end));
+		local message = st.message({ type = "chat", from = local_host },
+			untrusted_fail_notification:gsub("%$([%w_]+)", function (v)
+				return event[v] or session and session[v] or replacements and replacements[v] or nil;
+			end));
 		for jid in untrusted_fail_watchers do
 			module:log("debug", "Notifying %s", jid);
 			message.attr.to = jid;