aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/muc
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2014-08-31 20:33:47 +0200
committerKim Alvefur <zash@zash.se>2014-08-31 20:33:47 +0200
commit6594e3042b1afd3ecf39c841c6e631fa57f1ad18 (patch)
tree4ec93df10adb5f0babee3cae427685090594f039 /plugins/muc
parentd1f4af161d8dbd507ed3a91d194e4b77123a08f4 (diff)
downloadprosody-6594e3042b1afd3ecf39c841c6e631fa57f1ad18.tar.gz
prosody-6594e3042b1afd3ecf39c841c6e631fa57f1ad18.zip
mod_muc: Fix 'destroy rooms' adhoc command (Thanks Florob)
Diffstat (limited to 'plugins/muc')
-rw-r--r--plugins/muc/mod_muc.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/muc/mod_muc.lua b/plugins/muc/mod_muc.lua
index 5abde57c..5428d270 100644
--- a/plugins/muc/mod_muc.lua
+++ b/plugins/muc/mod_muc.lua
@@ -240,7 +240,7 @@ do -- Ad-hoc commands
};
local destroy_rooms_handler = adhoc_initial(destroy_rooms_layout, function()
- return { rooms = array.collect(each_room):pluck("jid"):sort(); };
+ return { rooms = array.collect(each_room()):pluck("jid"):sort(); };
end, function(fields, errors)
if errors then
local errmsg = {};