mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-24 17:29:28 +01:00
* src/mod_disco.erl: Fixed domain listing when one virtual host is
a subdomain of another SVN Revision: 322
This commit is contained in:
parent
361985f034
commit
d5b0b5c42b
@ -1,3 +1,8 @@
|
||||
2005-04-20 Alexey Shchepin <alexey@sevcom.net>
|
||||
|
||||
* src/mod_disco.erl: Fixed domain listing when one virtual host is
|
||||
a subdomain of another
|
||||
|
||||
2005-04-18 Alexey Shchepin <alexey@sevcom.net>
|
||||
|
||||
* src/web/ejabberd_web_admin.erl: Added link to shared roster page
|
||||
|
@ -344,9 +344,17 @@ get_local_items(_Host, _, _, _) ->
|
||||
|
||||
|
||||
get_vh_services(Host) ->
|
||||
DotHost = "." ++ Host,
|
||||
Hosts = lists:sort(fun(H1, H2) -> length(H1) >= length(H2) end, ?MYHOSTS),
|
||||
lists:filter(fun(H) ->
|
||||
lists:suffix(DotHost, H)
|
||||
case lists:dropwhile(
|
||||
fun(VH) ->
|
||||
not lists:suffix("." ++ VH, H)
|
||||
end, Hosts) of
|
||||
[] ->
|
||||
false;
|
||||
[VH | _] ->
|
||||
VH == Host
|
||||
end
|
||||
end, ejabberd_router:dirty_get_all_routes()).
|
||||
|
||||
get_online_vh_users(Host) ->
|
||||
|
Loading…
Reference in New Issue
Block a user