aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/muc/mod_muc.lua
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
commitf99d0138bf2fc1eefcc8954e2a3d0ac41419ca85 (patch)
tree9fa13777dc05e9fd400fc6911cd42824a2b1417c /plugins/muc/mod_muc.lua
parent74dea2bdb379f2fc44a844f7d0cf98c8937527a5 (diff)
downloadprosody-f99d0138bf2fc1eefcc8954e2a3d0ac41419ca85.tar.gz
prosody-f99d0138bf2fc1eefcc8954e2a3d0ac41419ca85.zip
MUC: Include a human-readable message when denying room creation because of restrict_room_creation
Diffstat (limited to 'plugins/muc/mod_muc.lua')
-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);