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 | 7df6f92a24114e8087f4585a093a799fab21da7f (patch) | |
tree | 109a0c580bac093fabfdacf9c4772bc8ba9ed169 /plugins/muc/mod_muc.lua | |
parent | aeb3c041440a149cc47ab960c16cba021b16ac14 (diff) | |
download | prosody-7df6f92a24114e8087f4585a093a799fab21da7f.tar.gz prosody-7df6f92a24114e8087f4585a093a799fab21da7f.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.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); |