aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/muc/muc.lib.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2016-10-01 21:51:07 +0200
committerKim Alvefur <zash@zash.se>2016-10-01 21:51:07 +0200
commitd22a43da00e6feab2b360d81330deb02e58f396a (patch)
tree5bf6eae6795524b7ac20c55a5a418e704fb64217 /plugins/muc/muc.lib.lua
parentca9cbd607f1dd9621237c6284fbf53dc5ba321c8 (diff)
downloadprosody-d22a43da00e6feab2b360d81330deb02e58f396a.tar.gz
prosody-d22a43da00e6feab2b360d81330deb02e58f396a.zip
MUC: Return 'true' from room:destroy() so that use from the telnet console says 'OK'
Diffstat (limited to 'plugins/muc/muc.lib.lua')
-rw-r--r--plugins/muc/muc.lib.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/muc/muc.lib.lua b/plugins/muc/muc.lib.lua
index 4018489a..cc147d19 100644
--- a/plugins/muc/muc.lib.lua
+++ b/plugins/muc/muc.lib.lua
@@ -756,6 +756,7 @@ function room_mt:destroy(newjid, reason, password)
end
self:set_persistent(false);
module:fire_event("muc-room-destroyed", { room = self });
+ return true;
end
function room_mt:handle_to_room(origin, stanza) -- presence changes and groupchat messages, along with disco/etc