diff options
author | daurnimator <quae@daurnimator.com> | 2014-04-30 12:43:04 -0400 |
---|---|---|
committer | daurnimator <quae@daurnimator.com> | 2014-04-30 12:43:04 -0400 |
commit | e6e40efd2fedc95dd8882fd7e4405a5fb01bdfc3 (patch) | |
tree | 109a0c580bac093fabfdacf9c4772bc8ba9ed169 | |
parent | 2c6ed6291abaae98e7afcf8f27ef16f013215c48 (diff) | |
download | prosody-e6e40efd2fedc95dd8882fd7e4405a5fb01bdfc3.tar.gz prosody-e6e40efd2fedc95dd8882fd7e4405a5fb01bdfc3.zip |
plugins/muc/mod_muc: Don't use rooms object directory in adhoc section
-rw-r--r-- | plugins/muc/mod_muc.lua | 3 |
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); |