Changeset

8850:26f1a49fa9c0

MUC: Include a human-readable error message when not allowed to change subject
author Kim Alvefur <zash@zash.se>
date Fri, 01 Jun 2018 08:47:07 +0200
parents 8849:cd186331ab1f
children 8851:ab5f678f1376
files plugins/muc/subject.lib.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/muc/subject.lib.lua	Fri Jun 01 08:03:12 2018 +0200
+++ b/plugins/muc/subject.lib.lua	Fri Jun 01 08:47:07 2018 +0200
@@ -101,7 +101,7 @@
 			room:save();
 			return true;
 		else
-			event.origin.send(st.error_reply(stanza, "auth", "forbidden"));
+			event.origin.send(st.error_reply(stanza, "auth", "forbidden", "You are not allowed to change the subject"));
 			return true;
 		end
 	end