mirror of
https://github.com/processone/ejabberd
synced 2025-10-03 17:59:31 +02:00
Make mod_muc_rtbl notify only local node rooms
This commit is contained in:
parent
c942c31e38
commit
98d348893b
1 changed files with 4 additions and 2 deletions
|
@ -188,8 +188,10 @@ notify_rooms(Host, Items) ->
|
||||||
lists:foreach(
|
lists:foreach(
|
||||||
fun(CHost) ->
|
fun(CHost) ->
|
||||||
lists:foreach(
|
lists:foreach(
|
||||||
fun({_, _, Pid}) ->
|
fun({_, _, Pid}) when node(Pid) == node() ->
|
||||||
mod_muc_room:route(Pid, IQ)
|
mod_muc_room:route(Pid, IQ);
|
||||||
|
(_) ->
|
||||||
|
ok
|
||||||
end, mod_muc:get_online_rooms(CHost))
|
end, mod_muc:get_online_rooms(CHost))
|
||||||
end, mod_muc_admin:find_hosts(Host)).
|
end, mod_muc_admin:find_hosts(Host)).
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue