Diff

plugins/muc/muc.lib.lua @ 7684:65ba769d9f05

MUC: Return 'true' from room:destroy() so that use from the telnet console says 'OK'
author Kim Alvefur <zash@zash.se>
date Sat, 01 Oct 2016 21:51:07 +0200
parent 7443:4a178edc9847
child 7686:8d6f367bed8c
child 7997:aca13c433e45
line wrap: on
line diff
--- a/plugins/muc/muc.lib.lua	Sat Oct 01 01:49:26 2016 +0200
+++ b/plugins/muc/muc.lib.lua	Sat Oct 01 21:51:07 2016 +0200
@@ -756,6 +756,7 @@
 	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