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

Small refactoring

SVN Revision: 2867
This commit is contained in:
Mickaël Rémond 2010-01-09 15:15:46 +00:00
parent cfc9089e51
commit 0537eea929

View File

@ -138,10 +138,8 @@ anonymous_protocol(Host) when is_list(Host) ->
%% defaults to false %% defaults to false
allow_multiple_connections(Host) when is_list(Host) -> allow_multiple_connections(Host) when is_list(Host) ->
case ejabberd_config:get_local_option({allow_multiple_connections, Host}) of ejabberd_config:get_local_option(
true -> true; {allow_multiple_connections, Host}) =:= true.
_Other -> false
end.
%% @spec (User, Server) -> bool() %% @spec (User, Server) -> bool()
%% User = string() %% User = string()
@ -347,4 +345,3 @@ remove_user(_User, _Server, _Password) ->
plain_password_required() -> plain_password_required() ->
false. false.