Software /
code /
prosody
Diff
plugins/muc/muc.lib.lua @ 1757:157e438823ba
MUC: Fixed traceback on unauthorized access of the room configuration form.
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Mon, 07 Sep 2009 20:55:57 +0500 |
parent | 1756:b2291156a9c2 |
child | 1764:c00d4ba8d2f3 |
line wrap: on
line diff
--- a/plugins/muc/muc.lib.lua Mon Sep 07 20:54:53 2009 +0500 +++ b/plugins/muc/muc.lib.lua Mon Sep 07 20:55:57 2009 +0500 @@ -313,7 +313,7 @@ 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")