This snippet takes advantage of the -n switch that comes with aline, to prevent a line from being added to a window if it's already in there. This makes the need to check obsolete. I'm also using a hidden window, so that is a lot more efficient than writing to a file, especially in the case of 1000+ lines.
Files can contain spaces, and don't necessarily have to be in the mirc folder.
Usage: $nodupes(file1, file2, output file)
alias nodupes {
if $0 == 1 { aline -n @@ $$1 }
elseif $isid && $3 != $null {
window -h @@
filter -fk " $+ $1" nodupes
filter -fk " $+ $2" nodupes
savebuf @@ " $+ $3"
close -@ @@
return Done
}
}
Example: //echo -a $nodupes(file1.txt, file2.txt, c:\program files\my files\output.txt)
Greets