From: pk910 Date: Fri, 28 Sep 2012 12:03:41 +0000 (+0200) Subject: do not filter access levels if not wanted (show database errors) X-Git-Url: http://git.pk910.de/?p=NeonServV5.git;a=commitdiff_plain;h=54ef844b721b720e9cc81dc4737c299a0e84cb59 do not filter access levels if not wanted (show database errors) --- diff --git a/src/modules/NeonServ.mod/cmd_neonserv_users.c b/src/modules/NeonServ.mod/cmd_neonserv_users.c index 73aa173..1ab7d47 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])) && caccess >= min_access && 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;