* Export petnames from syndie to the router's petname db instead of userhosts.txt.

This commit is contained in:
ragnarok
2005-09-30 07:32:46 +00:00
committed by zzz
parent 55869af2cc
commit 3bc3e5d47e
4 changed files with 15 additions and 25 deletions

View File

@ -45,6 +45,7 @@ public class PetNameDB {
}
public void load(String location) throws IOException {
_path = location;
File f = new File(location);
if (!f.exists()) return;
BufferedReader in = null;
@ -56,7 +57,6 @@ public class PetNameDB {
if (name.getName() != null)
_names.put(name.getName(), name);
}
_path = location;
} finally {
in.close();
}