|
@@ -40,6 +40,11 @@ function on_message(event)
|
40
|
40
|
log("warn", "No room found %s", roomAddress);
|
41
|
41
|
return false;
|
42
|
42
|
end
|
|
43
|
+
|
|
44
|
+ if not room.speakerStats then
|
|
45
|
+ log("warn", "No speakerStats found for %s", roomAddress);
|
|
46
|
+ return false;
|
|
47
|
+ end
|
43
|
48
|
|
44
|
49
|
local roomSpeakerStats = room.speakerStats;
|
45
|
50
|
local from = event.stanza.attr.from;
|
|
@@ -187,6 +192,10 @@ function occupant_leaving(event)
|
187
|
192
|
if is_healthcheck_room(room.jid) then
|
188
|
193
|
return;
|
189
|
194
|
end
|
|
195
|
+
|
|
196
|
+ if not room.speakerStats then
|
|
197
|
+ return;
|
|
198
|
+ end
|
190
|
199
|
|
191
|
200
|
local occupant = event.occupant;
|
192
|
201
|
|