|
@@ -4,7 +4,6 @@ local room_jid_match_rewrite = util.room_jid_match_rewrite;
|
4
|
4
|
local is_healthcheck_room = util.is_healthcheck_room;
|
5
|
5
|
local process_host_module = util.process_host_module;
|
6
|
6
|
local jid_resource = require "util.jid".resource;
|
7
|
|
-local ext_events = module:require "ext_events"
|
8
|
7
|
local st = require "util.stanza";
|
9
|
8
|
local socket = require "socket";
|
10
|
9
|
local json = require "util.json";
|
|
@@ -314,14 +313,14 @@ function room_destroyed(event)
|
314
|
313
|
return;
|
315
|
314
|
end
|
316
|
315
|
|
317
|
|
- ext_events.speaker_stats(room, room.speakerStats);
|
|
316
|
+ module:fire_event("send-speaker-stats", { room = room; roomSpeakerStats = room.speakerStats; });
|
318
|
317
|
end
|
319
|
318
|
|
320
|
319
|
module:hook("message/host", on_message);
|
321
|
320
|
|
322
|
321
|
function process_main_muc_loaded(main_muc, host_module)
|
323
|
322
|
-- the conference muc component
|
324
|
|
- module:log("info", "Hook to muc events on %s", host_module);
|
|
323
|
+ module:log("info", "Hook to muc events on %s", host_module.host);
|
325
|
324
|
main_muc_service = main_muc;
|
326
|
325
|
module:log("info", "Main muc service %s", main_muc_service)
|
327
|
326
|
host_module:hook("muc-room-created", room_created, -1);
|
|
@@ -332,7 +331,7 @@ end
|
332
|
331
|
|
333
|
332
|
function process_breakout_muc_loaded(breakout_muc, host_module)
|
334
|
333
|
-- the Breakout muc component
|
335
|
|
- module:log("info", "Hook to muc events on %s", host_module);
|
|
334
|
+ module:log("info", "Hook to muc events on %s", host_module.host);
|
336
|
335
|
host_module:hook("muc-room-created", breakout_room_created, -1);
|
337
|
336
|
host_module:hook("muc-occupant-joined", occupant_joined, -1);
|
338
|
337
|
host_module:hook("muc-occupant-pre-leave", occupant_leaving, -1);
|