Changeset 5197

Show
Ignore:
Timestamp:
01/22/08 03:59:20 (7 months ago)
Author:
morris
Message:

Clean up a bit

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • wired/trunk/wired/files.c

    r5196 r5197  
    725725                        break; 
    726726                 
    727                 if(length < wi_file_offset(file) && wd_files_name_matches_query(string, query, true)) { 
     727                if(length == wi_file_offset(file)) 
     728                        continue; 
     729                 
     730                if(wd_files_name_matches_query(string, query, true)) { 
    728731                        index = wi_string_index_of_char(string, WD_FIELD_SEPARATOR, 0); 
    729732                         
     
    732735                                pathrange.length = wi_string_length(string) - pathrange.location; 
    733736                                 
    734                                 if(wi_string_index_of_string_in_range(string, account->files, WI_STRING_CASE_INSENSITIVE, pathrange) == pathrange.location) { 
     737                                if(wi_string_index_of_string_in_range(string, account->files, WI_STRING_CASE_INSENSITIVE, pathrange) == pathrange.location) 
    735738                                        wi_string_delete_characters_to_index(string, index + pathlength + 1); 
    736                                          
    737                                         wd_reply(420, WI_STR("%@"), string); 
    738                                 } 
    739739                        } else { 
    740740                                wi_string_delete_characters_to_index(string, index + 1); 
    741                                  
    742                                 wd_reply(420, WI_STR("%@"), string); 
    743741                        } 
     742                         
     743                        wd_reply(420, WI_STR("%@"), string); 
    744744                } 
    745745