25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-24 16:23:40 +01:00

fix command rooms_empty_destroy (#3183)

This commit is contained in:
Paweł Chmielowski 2020-03-05 11:41:51 +01:00 committed by GitHub
parent b39a1e2d74
commit 9a89b360c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -805,7 +805,7 @@ get_rooms(ServiceArg) ->
Hosts = find_services(ServiceArg),
lists:flatmap(
fun(Host) ->
[{RoomName, RoomHost, Host, Pid}
[{RoomName, RoomHost, ejabberd_router:host_of_route(Host), Pid}
|| {RoomName, RoomHost, Pid} <- mod_muc:get_online_rooms(Host)]
end, Hosts).