Changeset

4201:9a8d2baf7a9c

MUC: Add a textual error message when the user isn't allowed to get/set config form.
author Waqas Hussain <waqas20@gmail.com>
date Thu, 24 Feb 2011 07:09:38 +0500
parents 4199:43cf7d96956f
children 4202:dff7df4a191b
files plugins/muc/muc.lib.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/muc/muc.lib.lua	Thu Feb 24 02:04:38 2011 +0000
+++ b/plugins/muc/muc.lib.lua	Thu Feb 24 07:09:38 2011 +0500
@@ -798,7 +798,7 @@
 			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