From 87805f6e4ed7b0eef2c92cea969da097a53912fe Mon Sep 17 00:00:00 2001
From: Kim Alvefur <zash@zash.se>
Date: Thu, 6 Jul 2017 11:22:16 +0200
Subject: MUC: Include a human-readable message when denying room creation
 because of restrict_room_creation

---
 plugins/muc/mod_muc.lua | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'plugins')

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);
-- 
cgit v1.2.3