mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-24 16:23:40 +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(
|
||||
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)).
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user