25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-28 16:34:13 +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 0bf9832187
commit 24aefc429c

View File

@ -115,10 +115,8 @@ anonymous_protocol(Host) ->
%% Return true if multiple connections have been allowed in the config file
%% defaults to false
allow_multiple_connections(Host) ->
case ejabberd_config:get_local_option({allow_multiple_connections, Host}) of
true -> true;
_Other -> false
end.
ejabberd_config:get_local_option(
{allow_multiple_connections, Host}) =:= true.
%% Check if user exist in the anonymus database
anonymous_user_exist(User, Server) ->
@ -248,4 +246,3 @@ remove_user(_User, _Server, _Password) ->
plain_password_required() ->
false.