aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/muc/request.lib.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-08-03 17:48:41 +0200
committerKim Alvefur <zash@zash.se>2018-08-03 17:48:41 +0200
commit9bc2a2e2ff78ed5a8e6f05009ff0d32f1442e529 (patch)
tree3b9d1d6d5cf093f004b3527c925b2df736476744 /plugins/muc/request.lib.lua
parent4d70f3f2a9d3495c5be873298a995816fe8467ec (diff)
downloadprosody-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.lua9
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