Diff

mod_compat_muc_admin/mod_compat_muc_admin.lua @ 631:c9084b4c14f0

mod_compat_muc_admin: corrected variable leftovers.
author Marco Cirillo <maranda@lightwitch.org>
date Tue, 27 Mar 2012 17:11:26 +0000
parent 630:ab2a1564da9b
child 731:15a8b717597b
line wrap: on
line diff
--- a/mod_compat_muc_admin/mod_compat_muc_admin.lua	Tue Mar 27 16:57:00 2012 +0000
+++ b/mod_compat_muc_admin/mod_compat_muc_admin.lua	Tue Mar 27 17:11:26 2012 +0000
@@ -148,9 +148,9 @@
 					else self:process_form(origin, stanza); end
 				elseif stanza.tags[1].tags[1].name == "destroy" then
 					if self:get_affiliation(stanza.attr.from) == "owner" then
-						local newjid = child.attr.jid;
+						local newjid = stanza.tags[1].tags[1].attr.jid;
 						local reason, password;
-						for _,tag in ipairs(child.tags) do
+						for _,tag in ipairs(stanza.tags[1].tags[1].tags) do
 							if tag.name == "reason" then
 								reason = #tag.tags == 0 and tag[1];
 							elseif tag.name == "password" then