|
|
@@ -221,7 +221,7 @@ function process_lobby_muc_loaded(lobby_muc, host_module)
|
|
221
|
221
|
local actor, occupant, room, x = event.actor, event.occupant, event.room, event.x;
|
|
222
|
222
|
if check_status(x, '307') then
|
|
223
|
223
|
-- we need to notify in the main room
|
|
224
|
|
- notify_lobby_access(room.main_room, actor, occupant.jid, false);
|
|
|
224
|
+ notify_lobby_access(room.main_room, actor, occupant.nick, false);
|
|
225
|
225
|
end
|
|
226
|
226
|
end);
|
|
227
|
227
|
end
|
|
|
@@ -346,7 +346,12 @@ process_host_module(main_muc_component_config, function(host_module, host)
|
|
346
|
346
|
local from = stanza:get_child('x', 'http://jabber.org/protocol/muc#user')
|
|
347
|
347
|
:get_child('invite').attr.from;
|
|
348
|
348
|
|
|
349
|
|
- notify_lobby_access(room, from, invitee, true);
|
|
|
349
|
+ if room._data.lobbyroom then
|
|
|
350
|
+ local occupant = room._data.lobbyroom:get_occupant_by_real_jid(invitee);
|
|
|
351
|
+ if occupant then
|
|
|
352
|
+ notify_lobby_access(room, from, occupant.nick, true);
|
|
|
353
|
+ end
|
|
|
354
|
+ end
|
|
350
|
355
|
end);
|
|
351
|
356
|
end);
|
|
352
|
357
|
|