# HG changeset patch # User Waqas Hussain # Date 1252338957 -18000 # Node ID 157e438823baca84410bd625cc070ae2d0180d3d # Parent b2291156a9c2f4ca87fb3a46b7fbcfdd8438d10f MUC: Fixed traceback on unauthorized access of the room configuration form. diff -r b2291156a9c2 -r 157e438823ba plugins/muc/muc.lib.lua --- 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")