aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-06-06 00:35:42 +0200
committerKim Alvefur <zash@zash.se>2018-06-06 00:35:42 +0200
commiteaffeb7521555efc05f4b6077eaf7618dc687160 (patch)
tree3c5ae6b8e60cad63f1f5f5d1fc5229340f1249fd
parent6223bf5220d15354bbe9ae1f87ec4598ec74611f (diff)
downloadprosody-eaffeb7521555efc05f4b6077eaf7618dc687160.tar.gz
prosody-eaffeb7521555efc05f4b6077eaf7618dc687160.zip
MUC: Track rooms created via internal public API
Fixes muc:create() in the telnet console
-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 3cdc5d87..f8963b38 100644
--- a/plugins/muc/mod_muc.lua
+++ b/plugins/muc/mod_muc.lua
@@ -231,7 +231,7 @@ function create_room(room_jid, config)
module:fire_event("muc-room-created", {
room = room;
});
- return room;
+ return track_room(room);
end
function each_room(local_only)