mod_announce: Suppress luacheck warnings
authorMatthew Wild <mwild1@gmail.com>
Fri, 26 Apr 2024 10:37:20 +0100
changeset 13489 3bdbaba15c00
parent 13488 e22609460975
child 13490 fdd1438d9ef7
mod_announce: Suppress luacheck warnings
plugins/mod_announce.lua
--- a/plugins/mod_announce.lua	Wed Apr 24 11:50:13 2024 +0100
+++ b/plugins/mod_announce.lua	Fri Apr 26 10:37:20 2024 +0100
@@ -137,7 +137,7 @@
 		{ name = "text", type = "string" };
 	};
 	host_selector = "host";
-	handler = function(self, host, text)
+	handler = function(self, host, text) --luacheck: ignore 212/self
 		local msg = st.message({ from = host, id = id.short() })
 			:text_tag("body", text);
 		local count = send_to_all(msg, host);
@@ -155,7 +155,7 @@
 		{ name = "text", type = "string" };
 	};
 	host_selector = "host";
-	handler = function(self, host, text)
+	handler = function(self, host, text) --luacheck: ignore 212/self
 		local msg = st.message({ from = host, id = id.short(), type = "headline" })
 			:text_tag("body", text);
 		local count = send_to_online(msg, host);
@@ -174,7 +174,7 @@
 		{ name = "text", type = "string" };
 	};
 	host_selector = "host";
-	handler = function(self, host, role, text)
+	handler = function(self, host, role, text) --luacheck: ignore 212/self
 		local msg = st.message({ from = host, id = id.short() })
 			:text_tag("body", text);
 		local count = send_to_role(msg, role, host);