Changeset

8877:9182398c64b9

MUC: Track rooms created via internal public API Fixes muc:create() in the telnet console
author Kim Alvefur <zash@zash.se>
date Wed, 06 Jun 2018 00:35:42 +0200
parents 8876:9e72e63819dc
children 8878:7c3e16fdaf1d
files plugins/muc/mod_muc.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/muc/mod_muc.lua	Sat Apr 14 16:14:55 2018 +0200
+++ b/plugins/muc/mod_muc.lua	Wed Jun 06 00:35:42 2018 +0200
@@ -231,7 +231,7 @@
 	module:fire_event("muc-room-created", {
 		room = room;
 	});
-	return room;
+	return track_room(room);
 end
 
 function each_room(local_only)