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:
parent
cfc9089e51
commit
0537eea929
@ -138,10 +138,8 @@ anonymous_protocol(Host) when is_list(Host) ->
|
||||
%% defaults to false
|
||||
|
||||
allow_multiple_connections(Host) when is_list(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.
|
||||
|
||||
%% @spec (User, Server) -> bool()
|
||||
%% User = string()
|
||||
@ -347,4 +345,3 @@ remove_user(_User, _Server, _Password) ->
|
||||
|
||||
plain_password_required() ->
|
||||
false.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user