From 417ba80c531904888fc06af63aa374aea737ea0f Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Fri, 20 Oct 2017 05:45:03 +0200 Subject: MUC: Ignore unused argumens [luacheck] --- plugins/muc/moderated.lib.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/muc/moderated.lib.lua') diff --git a/plugins/muc/moderated.lib.lua b/plugins/muc/moderated.lib.lua index 9b435bef..4d060a9d 100644 --- a/plugins/muc/moderated.lib.lua +++ b/plugins/muc/moderated.lib.lua @@ -86,7 +86,7 @@ module:hook("muc-voice-request", function(event) local message = st.message({ type = "normal"; from = event.room.jid }):add_child(form:form()):up(); - event.room:broadcast(message, function (nick, occupant) + event.room:broadcast(message, function (_, occupant) return occupant.role == "moderator"; end); end -- cgit v1.2.3