diff options
author | Kim Alvefur <zash@zash.se> | 2017-10-20 05:45:03 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2017-10-20 05:45:03 +0200 |
commit | 9ecd07b5da9176a210f4fa957633d9f8041e01de (patch) | |
tree | 5407224ae68cc064ccf4423246eaf3c51a8f9124 /plugins/muc/moderated.lib.lua | |
parent | a0efb3692146c15913fb91d7e47fb742385956a4 (diff) | |
download | prosody-9ecd07b5da9176a210f4fa957633d9f8041e01de.tar.gz prosody-9ecd07b5da9176a210f4fa957633d9f8041e01de.zip |
MUC: Ignore unused argumens [luacheck]
Diffstat (limited to 'plugins/muc/moderated.lib.lua')
-rw-r--r-- | plugins/muc/moderated.lib.lua | 2 |
1 files changed, 1 insertions, 1 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 |