MUC: Include a human-readable message when denying room creation because of restrict_room_creation
--- 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);