Skip to content
Snippets Groups Projects
Commit e3faf8e6 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Correct the duplicate name/address log messages.

parent 7d9bec6d
No related branches found
No related tags found
No related merge requests found
......@@ -555,12 +555,15 @@ function remove_dupes(list, verbose)
name = name.slice(0, -4);
if(name.slice(0, 4) == "the ")
name = name.slice(4);
if(names.indexOf(name) >= 0)
if(names.indexOf(name) >= 0) {
if(verbose)
print(format("%-25s : Duplicated name: %s", bbs.name, name));
continue;
}
if(bbs.service.length
&& address.indexOf(bbs.service[0].address.toLowerCase()) >= 0) {
if(verbose)
print(format("%-25s : Duplicated name", bbs.name));
print(format("%-25s : Duplicated address: %s", bbs.name, bbs.service[0].address));
continue;
}
names.push(name);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment