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
commit46105d64bf9627c8618624281c966ec784f4fc12 (patch)
tree4ec93df10adb5f0babee3cae427685090594f039 /plugins/muc
parentb0ad339e78ae34b938af8b58691d1ef962b09890 (diff)
downloadprosody-46105d64bf9627c8618624281c966ec784f4fc12.tar.gz
prosody-46105d64bf9627c8618624281c966ec784f4fc12.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 = {};