Software /
code /
prosody
Changeset
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 |
parents | 1756:b2291156a9c2 |
children | 1760:0372bf35dcb3 |
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 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")