aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2009-09-07 20:55:57 +0500
committerWaqas Hussain <waqas20@gmail.com>2009-09-07 20:55:57 +0500
commit3eab032d300fcdabac5c77389cab413d38831c97 (patch)
treebff7a029722db97ad4c13d7d6f8150d7082ec769 /plugins
parentddea87b3144f3af9e39182e236f440463d2e3565 (diff)
downloadprosody-3eab032d300fcdabac5c77389cab413d38831c97.tar.gz
prosody-3eab032d300fcdabac5c77389cab413d38831c97.zip
MUC: Fixed traceback on unauthorized access of the room configuration 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 7f01b9af..c63d579d 100644
--- a/plugins/muc/muc.lib.lua
+++ b/plugins/muc/muc.lib.lua
@@ -313,7 +313,7 @@ function room_mt:handle_to_occupant(origin, stanza) -- PM, vCards, etc
end
function room_mt:handle_form(origin, stanza)
- if self:get_affiliation(stanza.attr.from) ~= "owner" then origin.send(st.error_reply(nil, "auth", "forbidden")); return; end
+ if self:get_affiliation(stanza.attr.from) ~= "owner" then origin.send(st.error_reply(stanza, "auth", "forbidden")); return; end
if stanza.attr.type == "get" then
local title = "Configuration for "..self.jid;
origin.send(st.reply(stanza):query("http://jabber.org/protocol/muc#owner")