aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/muc/mod_muc.lua
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
commite6e40efd2fedc95dd8882fd7e4405a5fb01bdfc3 (patch)
tree109a0c580bac093fabfdacf9c4772bc8ba9ed169 /plugins/muc/mod_muc.lua
parent2c6ed6291abaae98e7afcf8f27ef16f013215c48 (diff)
downloadprosody-e6e40efd2fedc95dd8882fd7e4405a5fb01bdfc3.tar.gz
prosody-e6e40efd2fedc95dd8882fd7e4405a5fb01bdfc3.zip
plugins/muc/mod_muc: Don't use rooms object directory in adhoc section
Diffstat (limited to 'plugins/muc/mod_muc.lua')
-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);