mIRC Homepage
Posted By: Me2k3 Please Help - 11/06/03 05:49 PM
I'm using a line of code to log every nick (and the person's IP address) who enters my channel using this line of code:

on *:join:#channel:write c:\mirc\logs\mp3.txt $nick $gettok9$address($nick,2),2,64)

The problem is i get a lot of duplicates - does anyone know a way in which if a nick and IP address has already been logged, it won't get logged everytime that person enters the channel?

Thanks a lot!
Posted By: KingTomato Re: Please Help - 11/06/03 06:03 PM
if you change the order of the nick nad ip, it's possible. >:D

Code:
on *:join:#channel:{
  if ($read(logs\mp3.txt, s, $gettok($address($nick,2),2,64)) == $null) /write logs\mp3.txt $gettok($address($nick,2),2,64) $nick
}
© mIRC Discussion Forums