Changeset

8852:5e98d62f3f9b

MUC: Ignore unused argumens [luacheck]
author Kim Alvefur <zash@zash.se>
date Fri, 20 Oct 2017 05:45:03 +0200
parents 8851:ab5f678f1376
children 8853:f84f566dea58
files plugins/muc/moderated.lib.lua plugins/muc/muc.lib.lua
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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";