aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/muc
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-06-01 08:47:07 +0200
committerKim Alvefur <zash@zash.se>2018-06-01 08:47:07 +0200
commit19f3e9adb9db9829046503e6594041e54159dbca (patch)
tree371e1083f1a6b5e35782a47ad6a0550ff4584e7f /plugins/muc
parentac4af3929541d0c9fe5dc5d2ae9313042c5fcc94 (diff)
downloadprosody-19f3e9adb9db9829046503e6594041e54159dbca.tar.gz
prosody-19f3e9adb9db9829046503e6594041e54159dbca.zip
MUC: Include a human-readable error message when not allowed to change subject
Diffstat (limited to 'plugins/muc')
-rw-r--r--plugins/muc/subject.lib.lua2
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