diff options
author | Kim Alvefur <zash@zash.se> | 2018-06-01 08:47:07 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2018-06-01 08:47:07 +0200 |
commit | 19f3e9adb9db9829046503e6594041e54159dbca (patch) | |
tree | 371e1083f1a6b5e35782a47ad6a0550ff4584e7f /plugins | |
parent | ac4af3929541d0c9fe5dc5d2ae9313042c5fcc94 (diff) | |
download | prosody-19f3e9adb9db9829046503e6594041e54159dbca.tar.gz prosody-19f3e9adb9db9829046503e6594041e54159dbca.zip |
MUC: Include a human-readable error message when not allowed to change subject
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/muc/subject.lib.lua | 2 |
1 files changed, 1 insertions, 1 deletions
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 |