Comparison

plugins/muc/mod_muc.lua @ 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
parent 8875:be3230b42f12
child 8879:4dee8c439afc
comparison
equal deleted inserted replaced
8876:9e72e63819dc 8877:9182398c64b9
229 end 229 end
230 local room = muclib.new_room(room_jid, config); 230 local room = muclib.new_room(room_jid, config);
231 module:fire_event("muc-room-created", { 231 module:fire_event("muc-room-created", {
232 room = room; 232 room = room;
233 }); 233 });
234 return room; 234 return track_room(room);
235 end 235 end
236 236
237 function each_room(local_only) 237 function each_room(local_only)
238 if local_only then 238 if local_only then
239 return rooms:values(); 239 return rooms:values();