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:
parent
c942c31e38
commit
98d348893b
@ -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…
Reference in New Issue
Block a user