Software /
code /
prosody
Diff
plugins/muc/mod_muc.lua @ 6372:305226a9e581
mod_muc: Fix 'destroy rooms' adhoc command (Thanks Florob)
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 31 Aug 2014 20:33:47 +0200 |
parent | 6348:bffc885dc378 |
child | 6479:d016437e01bf |
line wrap: on
line diff
--- a/plugins/muc/mod_muc.lua Thu Aug 28 12:24:15 2014 +0100 +++ b/plugins/muc/mod_muc.lua Sun Aug 31 20:33:47 2014 +0200 @@ -240,7 +240,7 @@ }; 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 = {};