25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-30 16:36:29 +01:00

Fix binary Host argument

This commit is contained in:
Badlop 2010-06-28 13:42:00 +02:00
parent bdea5d3598
commit 7ffe06c77f

View File

@ -514,6 +514,9 @@ get_group_users(Host, Group) ->
[]
end ++ get_group_explicit_users(Host, Group).
%% @spec(User::any(), Host::string(), Group::string(), GroupOpts) -> [{Username::binary(), Server::binary()}]
get_group_users(User, HostB, Group, GroupOpts) when is_binary(HostB) ->
get_group_users(User, binary_to_list(HostB), Group, GroupOpts);
get_group_users(_User, Host, Group, GroupOpts) ->
case proplists:get_value(all_users, GroupOpts, false) of
true ->