A line of the text file looks like this:
*!*@whatever-A4341B25.asm.bellsouth.net,Blake 13717732

I've made a bunch of changes to the script, so I'll repost what it is now.
[code]
on 1:JOIN:#: {
set %addlength. [ $+ [ $nick ] ] $len($wildsite)
set -u5 %owner.chan $chan
set %defaultqmsg my quit message
set %join.address. [ $+ [ $nick ] ] $wildsite
set %join.precompadress. [ $+ [ $nick ] ] $read(C:\mirc\nicks.txt,w,$wildsite $+ *)
set %oldaddress $readn
set %join.compaddress. [ $+ [ $nick ] ] $left(%join.precompadress. [ $+ [ $nick ] ],%addlength. [ $+ [ $nick ] ])
set %join.compnick. [ $+ [ $nick ] ] $read(C:\mirc\nicks.txt,w,$nick $+ *)
set %oldnick $readn
set %join.time. [ $+ [ $nick ] ] $mid($ctime,2,8)
set %join.newnick $chr(44) $+ $nick %join.time
set %join.bothnew $wildsite $+ $chr(44) $+ $nick %join.time. [ $+ [ $nick ] ]
if (whatever1* iswm $nick) {
if (%join.address. [ $+ [ $nick ] ] == %join.compaddress. [ $+ [ $nick ] ]) { .notice $me Address Match 4 $nick }
else { echo 4 -a No Match $nick }
}
elseif (whatever2* iswm $nick) {
if (%join.address. [ $+ [ $nick ] ] == %join.compaddress. [ $+ [ $nick ] ]) { .notice $me Address Match 4 $nick }
else { echo 4 -a No Match $nick }
}
elseif (%join.address. [ $+ [ $nick ] ] == %join.compaddress. [ $+ [ $nick ] ]) { .notice $me Address Match 4 $nick | goto NickEval }
else { write C:\mirc\nicks.txt %join.bothnew | echo 4 -a $nick is a new entry }
halt
:NickEval
if ($nick = %join.compnick. [ $+ [ $nick ] ]) { .notice $me Nick Match 4 $nick | write -l %oldnick %join.newnick C:\mirc\nicks.txt }
else { write -l %oldaddress %join.newnick C:\mirc\nicks.txt }
}
on 1:NICK: {
set %addlength. [ $+ [ $newnick ] ] $len($wildsite)
set %nick.address. [ $+ [ $newnick ] ] $wildsite
set %nick.precompaddress. [ $+ [ $newnick ] ] $read(C:\mirc\nicks.txt,w,$wildsite $+ *)
set %oldaddress $readn
set %nick.compaddress. [ $+ [ $newnick ] ] $left(%nick.precompaddress. [ $+ [ $newnick ] ],%addlength. [ $+ [ $newnick ] ])
set %nick.compnewnick $read(C:\mirc\nicks.txt,w,$newnick $+ *)
set %oldnick $readn
set %nick.newnick $newnick %join.time. [ $+ [ $nick ] ]
set %nick.nicktime $mid($ctime,2,8)
set %nick.bothnew $wildsite $+ $chr(44) $+ $newnick %nick.nicktime
if ($newnick == %nick.compnewnick) { .notice $me $newnick found }
elseif (%nick.address. [ $+ [ $newnick ] ] == %nick.compaddress. [ $+ [ $newnick ] ]) { write -l %oldnick $chr(44) $+ $newnick %nick.nicktime C:\mirc\nicks.txt | .notice $me new nick old address }
else { write C:\mirc\nicks.txt %nick.bothnew | echo 4 -a $newnick is a new entry }
}
on 1:QUIT: {
unset *. $+ $nick
}