Changeset

8180:67a9ff352271

MUC: Include a human-readable message when denying room creation because of restrict_room_creation
author Kim Alvefur <zash@zash.se>
date Thu, 06 Jul 2017 11:22:16 +0200
parents 8179:c5fa7fe3fd79
children 8181:79f73af4c410
files plugins/muc/mod_muc.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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);