fixed match check on cmd_neonserv_users.c
[NeonServV5.git] / cmd_neonserv_users.c
index a87aca55d6ee4be60d8636c0fbddd9a959812ba9..a013cdbffdc9be66c9258914f9c2ca4f7b3fe348 100644 (file)
@@ -68,7 +68,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])) && caccess >= min_access && caccess <= max_access) {
             content[0] = row[0];
             content[1] = row[1];
             is_here = 0;