Mercurial > prosody-hg
diff plugins/muc/moderated.lib.lua @ 8852:5e98d62f3f9b
MUC: Ignore unused argumens [luacheck]
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Fri, 20 Oct 2017 05:45:03 +0200 |
| parents | ab5f678f1376 |
| children | f84f566dea58 |
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
