X-Git-Url: http://git.pk910.de/?a=blobdiff_plain;f=src%2Fmodules%2FNeonServ.mod%2Fcmd_neonserv_users.c;h=4da41b5e7450e687439f81852cb8f1dbbb006a0e;hb=HEAD;hp=73aa173b20585199f2c7e8d973d5b04e95b2568a;hpb=1ec245405118cf7b3724b97c407104a75f5277c9;p=NeonServV5.git diff --git a/src/modules/NeonServ.mod/cmd_neonserv_users.c b/src/modules/NeonServ.mod/cmd_neonserv_users.c index 73aa173..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])) && 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;