# HG changeset patch # User Kim Alvefur # Date 1499332936 -7200 # Node ID 67a9ff3522712fd81ed55eec81b3f53c6928e907 # Parent c5fa7fe3fd79a5bea2591addb5c57136c6de54df MUC: Include a human-readable message when denying room creation because of restrict_room_creation diff -r c5fa7fe3fd79 -r 67a9ff352271 plugins/muc/mod_muc.lua --- a/plugins/muc/mod_muc.lua Thu Jul 06 11:21:28 2017 +0200 +++ b/plugins/muc/mod_muc.lua Thu Jul 06 11:22:16 2017 +0200 @@ -251,7 +251,7 @@ 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);