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
commite4b27b4e7a5e21fc272c9b33d4184a94df7e76d1 (patch)
tree3b9d1d6d5cf093f004b3527c925b2df736476744 /plugins/muc/request.lib.lua
parent4e91846a0bcb35d7c586397c1d3e96147b2bae5f (diff)
downloadprosody-e4b27b4e7a5e21fc272c9b33d4184a94df7e76d1.tar.gz
prosody-e4b27b4e7a5e21fc272c9b33d4184a94df7e76d1.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