aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/muc
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2014-04-30 12:43:04 -0400
committerdaurnimator <quae@daurnimator.com>2014-04-30 12:43:04 -0400
commit7df6f92a24114e8087f4585a093a799fab21da7f (patch)
tree109a0c580bac093fabfdacf9c4772bc8ba9ed169 /plugins/muc
parentaeb3c041440a149cc47ab960c16cba021b16ac14 (diff)
downloadprosody-7df6f92a24114e8087f4585a093a799fab21da7f.tar.gz
prosody-7df6f92a24114e8087f4585a093a799fab21da7f.zip
plugins/muc/mod_muc: Don't use rooms object directory in adhoc section
Diffstat (limited to 'plugins/muc')
-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);