mIRC Home    About    Download    Register    News    Help

Print Thread
#29185 11/06/03 05:49 PM
Joined: Jun 2003
Posts: 7
M
Me2k3 Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
M
Joined: Jun 2003
Posts: 7
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!

#29186 11/06/03 06:03 PM
Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
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
}


-KingTomato

Link Copied to Clipboard