Mercurial > prosody-hg
diff plugins/muc/request.lib.lua @ 9081:ce57c69a20e2
MUC: Split long lines [luacheck strict]
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Fri, 03 Aug 2018 17:48:41 +0200 |
| parents | 1c709e3d2e5e |
| children | 0cfb7b3593eb |
line wrap: on
line diff
--- a/plugins/muc/request.lib.lua Fri Aug 03 17:15:42 2018 +0200 +++ b/plugins/muc/request.lib.lua Fri Aug 03 17:48:41 2018 +0200 @@ -81,7 +81,8 @@ ["muc#roomnick"] = nick; }; - local message = st.message({ type = "normal"; from = event.room.jid }):add_child(voice_request_form:form(formdata)):up(); + local message = st.message({ type = "normal"; from = event.room.jid }) + :add_direct_child(voice_request_form:form(formdata)); event.room:broadcast(message, function (_, occupant) return occupant.role == "moderator"; @@ -105,12 +106,14 @@ end if not affected_occupant then - module:log("debug", "%s tried to grant voice to unknown occupant %s", jid_resource(occupant.nick), event.fields["muc#jid"]); + module:log("debug", "%s tried to grant voice to unknown occupant %s", + jid_resource(occupant.nick), event.fields["muc#jid"]); return; end if affected_occupant.role ~= "visitor" then - module:log("debug", "%s tried to grant voice to %s but they already have it", jid_resource(occupant.nick), jid_resource(occupant.jid)); + module:log("debug", "%s tried to grant voice to %s but they already have it", + jid_resource(occupant.nick), jid_resource(occupant.jid)); return; end
