Diff

mod_watchuntrusted/mod_watchuntrusted.lua @ 3020:ec671ad1a8a9

mod_watchuntrusted: Add option for which message 'type' to use on notifications Because poezio treats headline messages in a very sensible way that fits great with this kind of system message
author Kim Alvefur <zash@zash.se>
date Sun, 20 May 2018 16:21:07 +0200
parent 2887:65082d91950e
child 3022:3996437ff64f
line wrap: on
line diff
--- a/mod_watchuntrusted/mod_watchuntrusted.lua	Sun May 20 03:43:38 2018 +0200
+++ b/mod_watchuntrusted/mod_watchuntrusted.lua	Sun May 20 16:21:07 2018 +0200
@@ -49,7 +49,7 @@
 			errors = error_message
 		};
 
-		local message = st.message({ type = "chat", from = local_host },
+		local message = st.message({ type = msg_type, 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));