X-Git-Url: http://git.pk910.de/?p=NeonServV5.git;a=blobdiff_plain;f=src%2Fmodules%2FNeonServ.mod%2Fcmd_neonserv_users.c;h=1ab7d478acbfaf5d6196158b12a17e464b87b45a;hp=54425261910e3e0aafd374fad482bf5b89b6c0c1;hb=54ef844b721b720e9cc81dc4737c299a0e84cb59;hpb=1471e99b8b975135cf4f66c0e497d4a5ded7ed77 diff --git a/src/modules/NeonServ.mod/cmd_neonserv_users.c b/src/modules/NeonServ.mod/cmd_neonserv_users.c index 5442526..1ab7d47 100644 --- a/src/modules/NeonServ.mod/cmd_neonserv_users.c +++ b/src/modules/NeonServ.mod/cmd_neonserv_users.c @@ -44,7 +44,7 @@ CMD_BIND(neonserv_cmd_users) { } struct neonserv_cmd_users_cache *cache = malloc(sizeof(*cache)); if (!cache) { - perror("malloc() failed"); + printf_log("neonserv", LOG_ERROR, "%s:%d malloc() failed", __FILE__, __LINE__); return; } cache->client = client; @@ -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;