diff options
author | Kim Alvefur <zash@zash.se> | 2018-08-03 17:48:41 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2018-08-03 17:48:41 +0200 |
commit | 9bc2a2e2ff78ed5a8e6f05009ff0d32f1442e529 (patch) | |
tree | 3b9d1d6d5cf093f004b3527c925b2df736476744 /plugins/muc/request.lib.lua | |
parent | 4d70f3f2a9d3495c5be873298a995816fe8467ec (diff) | |
download | prosody-9bc2a2e2ff78ed5a8e6f05009ff0d32f1442e529.tar.gz prosody-9bc2a2e2ff78ed5a8e6f05009ff0d32f1442e529.zip |
MUC: Split long lines [luacheck strict]
Diffstat (limited to 'plugins/muc/request.lib.lua')
-rw-r--r-- | plugins/muc/request.lib.lua | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/plugins/muc/request.lib.lua b/plugins/muc/request.lib.lua index 1bf02e55..1d9c39f9 100644 --- a/plugins/muc/request.lib.lua +++ b/plugins/muc/request.lib.lua @@ -81,7 +81,8 @@ module:hook("muc-voice-request", function(event) ["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 @@ module:hook("muc-voice-response", function(event) 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 |