MUC: Fixed traceback on unauthorized access of the room configuration form.

Mon, 07 Sep 2009 20:55:57 +0500

author
Waqas Hussain <waqas20@gmail.com>
date
Mon, 07 Sep 2009 20:55:57 +0500
changeset 1757
157e438823ba
parent 1756
b2291156a9c2
child 1760
0372bf35dcb3

MUC: Fixed traceback on unauthorized access of the room configuration form.

plugins/muc/muc.lib.lua file | annotate | diff | comparison | revisions
--- 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")

mercurial