From aea3424fb9e06bd33cae2f2de4c6b4b657466988 Mon Sep 17 00:00:00 2001 From: pk910 Date: Fri, 19 Oct 2012 14:08:36 +0200 Subject: [PATCH] fixed cmd_users output filter --- src/modules/NeonServ.mod/cmd_neonserv_users.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/NeonServ.mod/cmd_neonserv_users.c b/src/modules/NeonServ.mod/cmd_neonserv_users.c index 1ab7d47..4da41b5 100644 --- a/src/modules/NeonServ.mod/cmd_neonserv_users.c +++ b/src/modules/NeonServ.mod/cmd_neonserv_users.c @@ -86,7 +86,7 @@ static void neonserv_cmd_users_async1(struct ClientSocket *client, struct Client table_add(table, content); while ((row = mysql_fetch_row(res)) != NULL) { caccess = atoi(row[0]); - if((!usermask || !match(usermask, row[1])) && (min_access > 1 && caccess >= min_access) && (max_access < 500 && caccess <= max_access)) { + if((!usermask || !match(usermask, row[1])) && (min_access == 1 || caccess >= min_access) && (max_access == 500 || caccess <= max_access)) { content[0] = row[0]; content[1] = row[1]; is_here = 0; -- 2.20.1