aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
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
commit2a3e98fc42dc817a32c4de6454e7d8945a313ad1 (patch)
tree371e1083f1a6b5e35782a47ad6a0550ff4584e7f /plugins
parent157bc12c6b0a3c66f583321fdbf27f1458468f48 (diff)
downloadprosody-2a3e98fc42dc817a32c4de6454e7d8945a313ad1.tar.gz
prosody-2a3e98fc42dc817a32c4de6454e7d8945a313ad1.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.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