aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2011-02-24 07:09:38 +0500
committerWaqas Hussain <waqas20@gmail.com>2011-02-24 07:09:38 +0500
commit5f8cd641ca14945a063824f89e0b14d1f7f9bbd1 (patch)
treeaa9e2b662f52dc1f949ce9f6a1d6acd2b927c66e /plugins
parent03db98294d38720bd61c178af931e7d7d711696d (diff)
downloadprosody-5f8cd641ca14945a063824f89e0b14d1f7f9bbd1.tar.gz
prosody-5f8cd641ca14945a063824f89e0b14d1f7f9bbd1.zip
MUC: Add a textual error message when the user isn't allowed to get/set config form.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/muc/muc.lib.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/muc/muc.lib.lua b/plugins/muc/muc.lib.lua
index 8bbf0df2..c60d44aa 100644
--- a/plugins/muc/muc.lib.lua
+++ b/plugins/muc/muc.lib.lua
@@ -798,7 +798,7 @@ function room_mt:handle_to_room(origin, stanza) -- presence changes and groupcha
end
elseif xmlns == "http://jabber.org/protocol/muc#owner" and (type == "get" or type == "set") and stanza.tags[1].name == "query" then
if self:get_affiliation(stanza.attr.from) ~= "owner" then
- origin.send(st.error_reply(stanza, "auth", "forbidden"));
+ origin.send(st.error_reply(stanza, "auth", "forbidden", "Only owners can configure rooms"));
elseif stanza.attr.type == "get" then
self:send_form(origin, stanza);
elseif stanza.attr.type == "set" then