Changeset 3011

Show
Ignore:
Timestamp:
07/07/06 04:30:18 (2 years ago)
Author:
madcat
Message:

Only attempts to import supported (donkey) downloads.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • hydranode/hncore/imp_mldonkey/imp_mldonkey.cpp

    r3010 r3011  
    124124                } else if (inFiles && !inFile && tmp.find("{") == 0) { 
    125125                        inFile = true; 
     126                        fileData += tmp.substr(1) + "\n"; 
    126127                } else if (inFiles && inFile && tmp == "};") { 
    127128                        files.push_back(fileData); 
     
    301302                } 
    302303 
    303                 importList.push_back(f); 
     304                // only donkey downloads supported currently 
     305                if (f.m_network == "Donkey") { 
     306                        importList.push_back(f); 
     307                } 
    304308        } 
    305309 
     
    339343        } 
    340344} 
    341  
    342  
    343 //int main(int argc, char *argv[]) { 
    344 //      boost::filesystem::path::default_name_check(boost::filesystem::native); 
    345 //      import(boost::filesystem::path()); 
    346 //      return 0; 
    347 //}