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
1 changed files with 4 additions and 2 deletions

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,