25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-28 16:34:13 +01:00

Make mod_muc_rtbl notify only local node rooms

This commit is contained in:
Paweł Chmielowski 2023-04-17 17:07:59 +02:00
parent c942c31e38
commit 98d348893b

View File

@ -188,8 +188,10 @@ notify_rooms(Host, Items) ->
lists:foreach(
fun(CHost) ->
lists:foreach(
fun({_, _, Pid}) ->
mod_muc_room:route(Pid, IQ)
fun({_, _, Pid}) when node(Pid) == node() ->
mod_muc_room:route(Pid, IQ);
(_) ->
ok
end, mod_muc:get_online_rooms(CHost))
end, mod_muc_admin:find_hosts(Host)).