# HG changeset patch # User daurnimator # Date 1398876184 14400 # Node ID 45b8ad2b14c500b21fb945eb29e47c5a05cea4fd # Parent 8ec4ff630eb49e3cacd9dcb1c307c20f32e7d46b plugins/muc/mod_muc: Don't use rooms object directory in adhoc section diff -r 8ec4ff630eb4 -r 45b8ad2b14c5 plugins/muc/mod_muc.lua --- a/plugins/muc/mod_muc.lua Wed Apr 30 13:12:32 2014 -0400 +++ b/plugins/muc/mod_muc.lua Wed Apr 30 12:43:04 2014 -0400 @@ -239,8 +239,7 @@ return { status = "completed", error = { message = t_concat(errmsg, "\n") } }; end for _, room in ipairs(fields.rooms) do - rooms[room]:destroy(); - rooms[room] = nil; + get_room_from_jid(room):destroy(); end return { status = "completed", info = "The following rooms were destroyed:\n"..t_concat(fields.rooms, "\n") }; end);