diff options
author | Kim Alvefur <zash@zash.se> | 2017-07-06 11:22:16 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2017-07-06 11:22:16 +0200 |
commit | 87805f6e4ed7b0eef2c92cea969da097a53912fe (patch) | |
tree | 9fa13777dc05e9fd400fc6911cd42824a2b1417c /plugins/muc/mod_muc.lua | |
parent | f9ddb56e414599dd0a28773fc849cca59c86b49f (diff) | |
download | prosody-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/muc/mod_muc.lua')
-rw-r--r-- | plugins/muc/mod_muc.lua | 2 |
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); |