* src/ejabberd_auth.erl: Better handling of errors when the server for

authentication is unknown.

SVN Revision: 585
This commit is contained in:
Mickaël Rémond 2006-07-05 14:36:21 +00:00
parent 9fdef5c15f
commit 6bf03a683d
2 changed files with 3 additions and 0 deletions

View File

@ -7,6 +7,8 @@
* src/mod_shared_roster.erl: The logged user (self) is now removed from
the shared roster list.
* src/ejabberd_auth.erl: Better handling of errors when the server for
authentication is unknown.
2006-06-19 Alexey Shchepin <alexey@sevcom.net>

View File

@ -169,6 +169,7 @@ auth_modules(Server) ->
LServer = jlib:nameprep(Server),
Method = ejabberd_config:get_local_option({auth_method, LServer}),
Methods = if
Method == undefined -> [];
is_list(Method) -> Method;
is_atom(Method) -> [Method]
end,