Software /
code /
prosody
Diff
plugins/muc/subject.lib.lua @ 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 |
parent | 8849:cd186331ab1f |
child | 8884:a387e00471d6 |
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