25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-28 16:34:13 +01:00

Fix function_clause after authentication refactoring

Fixes https://github.com/processone/ejabberd-contrib/issues/213
This commit is contained in:
Evgeniy Khramtsov 2017-05-18 09:51:04 +03:00
parent 3e35d44b0f
commit b0b7ac101c

View File

@ -205,10 +205,12 @@ del_user_return_password(_LServer, LUser, Password) ->
P.
list_users(LServer) ->
list_users(LServer, []).
list_users(LServer, []) ->
ejabberd_sql:sql_query(
LServer,
?SQL("select @(username)s from users")).
?SQL("select @(username)s from users"));
list_users(LServer, [{from, Start}, {to, End}])
when is_integer(Start) and is_integer(End) ->
list_users(LServer,