aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2017-07-06 11:22:16 +0200
committerKim Alvefur <zash@zash.se>2017-07-06 11:22:16 +0200
commit87805f6e4ed7b0eef2c92cea969da097a53912fe (patch)
tree9fa13777dc05e9fd400fc6911cd42824a2b1417c /plugins
parentf9ddb56e414599dd0a28773fc849cca59c86b49f (diff)
downloadprosody-87805f6e4ed7b0eef2c92cea969da097a53912fe.tar.gz
prosody-87805f6e4ed7b0eef2c92cea969da097a53912fe.zip
MUC: Include a human-readable message when denying room creation because of restrict_room_creation
Diffstat (limited to 'plugins')
-rw-r--r--plugins/muc/mod_muc.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/muc/mod_muc.lua b/plugins/muc/mod_muc.lua
index b2949e70..cf2c7440 100644
--- a/plugins/muc/mod_muc.lua
+++ b/plugins/muc/mod_muc.lua
@@ -251,7 +251,7 @@ do
restrict_room_creation == "local" and
select(2, jid_split(user_jid)) == host_suffix
) then
- origin.send(st.error_reply(stanza, "cancel", "not-allowed"));
+ origin.send(st.error_reply(stanza, "cancel", "not-allowed", "Room creation is restricted"));
return true;
end
end);