trying to build a clone detector bu having problem with one part of code
if $read(Textfiles/nickhistory.txt, w, * $+ $nick $+ *) { set %clone $readn }
if ($xd($nick) == $gettok($read(textfiles/nickhistory.txt,%clone),2,32)) && ($$ial($xd($nick) $+ *,1).addr != $gettok($read(textfiles/nickhistory.txt,%clone),1,32)) {
write -l %line textfiles/nickhistory.txt $$ial($nick $+ *,1).addr Cloner $asctime(h:nn:ss tt) $adate $chan $xd($nick)
kick # $nick No Cloning Allowed (Infinite Ban)
access # add deny $$ial($nick $+ *,1).addr
return
}
problem is though say you have someone with the nick mary who is on line # 8 of the text file.
now you also have someone on line 15 who is nicked ma
if someone clones ma it wont catch it because it stops at line 8 when it matches ma to mary. how can i get it to where if the nick doesnt match exactly it will keep going?