aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/muc
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2017-10-20 05:45:03 +0200
committerKim Alvefur <zash@zash.se>2017-10-20 05:45:03 +0200
commit417ba80c531904888fc06af63aa374aea737ea0f (patch)
tree5407224ae68cc064ccf4423246eaf3c51a8f9124 /plugins/muc
parent7a1e5db391d482820c83a98c3b8b11865c262c37 (diff)
downloadprosody-417ba80c531904888fc06af63aa374aea737ea0f.tar.gz
prosody-417ba80c531904888fc06af63aa374aea737ea0f.zip
MUC: Ignore unused argumens [luacheck]
Diffstat (limited to 'plugins/muc')
-rw-r--r--plugins/muc/moderated.lib.lua2
-rw-r--r--plugins/muc/muc.lib.lua2
2 files changed, 2 insertions, 2 deletions
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
diff --git a/plugins/muc/muc.lib.lua b/plugins/muc/muc.lib.lua
index 83cd9fb5..882d9734 100644
--- a/plugins/muc/muc.lib.lua
+++ b/plugins/muc/muc.lib.lua
@@ -778,7 +778,7 @@ function room_mt:get_form_layout(actor)
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";