From b0b7ac101cf304acc579463c6e2f0a7bc9eadc1b Mon Sep 17 00:00:00 2001 From: Evgeniy Khramtsov Date: Thu, 18 May 2017 09:51:04 +0300 Subject: [PATCH] Fix function_clause after authentication refactoring Fixes https://github.com/processone/ejabberd-contrib/issues/213 --- src/sql_queries.erl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/sql_queries.erl b/src/sql_queries.erl index 862e4e284..2f2e55863 100644 --- a/src/sql_queries.erl +++ b/src/sql_queries.erl @@ -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,