diff options
author | Matthew Wild <mwild1@gmail.com> | 2024-04-26 10:37:20 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2024-04-26 10:37:20 +0100 |
commit | 5ef6234248cf5c130e12b4eccd8b1cba24b2d2da (patch) | |
tree | 428b10c1bcb2eaac1fafcfb15d92123df086f998 /plugins | |
parent | a839446a32f52e0da10926d596cca0196cc75b09 (diff) | |
download | prosody-5ef6234248cf5c130e12b4eccd8b1cba24b2d2da.tar.gz prosody-5ef6234248cf5c130e12b4eccd8b1cba24b2d2da.zip |
mod_announce: Suppress luacheck warnings
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/mod_announce.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/mod_announce.lua b/plugins/mod_announce.lua index 045d1fcb..f54d2db9 100644 --- a/plugins/mod_announce.lua +++ b/plugins/mod_announce.lua @@ -137,7 +137,7 @@ module:add_item("shell-command", { { 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 @@ module:add_item("shell-command", { { 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 @@ module:add_item("shell-command", { { 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); |