aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/muc
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
commit549f13b753abfbc90fc6faffeae7b5a662407b77 (patch)
tree3c5ae6b8e60cad63f1f5f5d1fc5229340f1249fd /plugins/muc
parent5ad0f9390a31c7506992351542a07796d66e3f9f (diff)
downloadprosody-549f13b753abfbc90fc6faffeae7b5a662407b77.tar.gz
prosody-549f13b753abfbc90fc6faffeae7b5a662407b77.zip
MUC: Track rooms created via internal public API
Fixes muc:create() in the telnet console
Diffstat (limited to 'plugins/muc')
-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)