From 2a3e98fc42dc817a32c4de6454e7d8945a313ad1 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Fri, 1 Jun 2018 08:47:07 +0200 Subject: MUC: Include a human-readable error message when not allowed to change subject --- plugins/muc/subject.lib.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/muc/subject.lib.lua') diff --git a/plugins/muc/subject.lib.lua b/plugins/muc/subject.lib.lua index e2fe9b51..b842e777 100644 --- a/plugins/muc/subject.lib.lua +++ b/plugins/muc/subject.lib.lua @@ -101,7 +101,7 @@ module:hook("muc-occupant-groupchat", function(event) 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 -- cgit v1.2.3