aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/muc/mod_muc.lua3
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/muc/mod_muc.lua b/plugins/muc/mod_muc.lua
index 5ad86025..9f022b3a 100644
--- a/plugins/muc/mod_muc.lua
+++ b/plugins/muc/mod_muc.lua
@@ -239,8 +239,7 @@ end, function(fields, errors)
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);