MUC: Include a human-readable message when denying room creation because of restrict_room_creation
authorKim Alvefur <zash@zash.se>
Thu, 06 Jul 2017 11:22:16 +0200
changeset 8183 67a9ff352271
parent 8182 c5fa7fe3fd79
child 8184 79f73af4c410
MUC: Include a human-readable message when denying room creation because of restrict_room_creation
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);