plugins/muc/muc.lib.lua

changeset 1757
157e438823ba
parent 1756
b2291156a9c2
child 1764
c00d4ba8d2f3
--- 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