console_cmds.c
changeset 2541 959903599cb9
parent 2540 c8b07e7aa73e
child 2859 ed471404f531
equal deleted inserted replaced
2540:c8b07e7aa73e 2541:959903599cb9
   412 		return true;
   412 		return true;
   413 	}
   413 	}
   414 
   414 
   415 	if (argc != 2) return false;
   415 	if (argc != 2) return false;
   416 
   416 
   417 	index = (strrchr(argv[1], '.') == '\0') ? atoi(argv[1]) : 0;
   417 	index = (strchr(argv[1], '.') == NULL) ? atoi(argv[1]) : 0;
   418 	index--;
   418 	index--;
   419 
   419 
   420 	for (i = 0; i < lengthof(_network_ban_list); i++) {
   420 	for (i = 0; i < lengthof(_network_ban_list); i++) {
   421 		if (_network_ban_list[i] == NULL || _network_ban_list[i][0] == '\0')
   421 		if (_network_ban_list[i] == NULL || _network_ban_list[i][0] == '\0')
   422 			continue;
   422 			continue;