MUC: Ignore unused argumens [luacheck]
authorKim Alvefur <zash@zash.se>
Fri, 20 Oct 2017 05:45:03 +0200
changeset 8855 5e98d62f3f9b
parent 8854 ab5f678f1376
child 8856 f84f566dea58
MUC: Ignore unused argumens [luacheck]
plugins/muc/moderated.lib.lua
plugins/muc/muc.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
--- 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";