From 3eab032d300fcdabac5c77389cab413d38831c97 Mon Sep 17 00:00:00 2001
From: Waqas Hussain <waqas20@gmail.com>
Date: Mon, 7 Sep 2009 20:55:57 +0500
Subject: MUC: Fixed traceback on unauthorized access of the room configuration
 form.

---
 plugins/muc/muc.lib.lua | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'plugins/muc')

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")
-- 
cgit v1.2.3