# HG changeset patch # User Kim Alvefur # Date 1508471103 -7200 # Node ID 5e98d62f3f9bd0a5e23385aef2046eb06cb56d28 # Parent ab5f678f137644de917e4e9ab014567920475ffd MUC: Ignore unused argumens [luacheck] diff -r ab5f678f1376 -r 5e98d62f3f9b plugins/muc/moderated.lib.lua --- a/plugins/muc/moderated.lib.lua Fri Oct 20 05:19:25 2017 +0200 +++ b/plugins/muc/moderated.lib.lua Fri Oct 20 05:45:03 2017 +0200 @@ -86,7 +86,7 @@ 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 diff -r ab5f678f1376 -r 5e98d62f3f9b plugins/muc/muc.lib.lua --- a/plugins/muc/muc.lib.lua Fri Oct 20 05:19:25 2017 +0200 +++ b/plugins/muc/muc.lib.lua Fri Oct 20 05:45:03 2017 +0200 @@ -778,7 +778,7 @@ return module:fire_event("muc-config-form", { room = self, actor = actor, form = form }) or form; end -function room_mt:get_voice_form_layout() +function room_mt:get_voice_form_layout() -- luacheck: ignore 212/self local form = dataform.new({ { name = "FORM_TYPE";