mIRC Home    About    Download    Register    News    Help

Print Thread
#106159 25/12/04 01:14 PM
Joined: Dec 2004
Posts: 6
X
XCan Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
X
Joined: Dec 2004
Posts: 6
Hello,
I'm an ircop on a small network which by normal masks the hosts of normal users. I was wondering if it is possible to write a script where you can whois a user that joins and write the IP showing up to a text file. The whois part looks like this: User is connecting from *@yadahost.com 127.0.0.1

#106160 26/12/04 03:42 AM
Joined: Mar 2004
Posts: 540
A
Fjord artisan
Offline
Fjord artisan
A
Joined: Mar 2004
Posts: 540
Ive never heard of a ircd that doesnt show the ircop that info if you whois someone check in the status window sometimes mirc doesnt know how to handle the other raw numerics

#106161 26/12/04 11:06 AM
Joined: Dec 2004
Posts: 6
X
XCan Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
X
Joined: Dec 2004
Posts: 6
It does show, I just want to write a script that automaticlly logs that part. To make it simpler, is it even possible to write a script that logs parts of what /whois shows?

#106162 27/12/04 12:43 PM
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
Do you mean something like this...

Code:
on 1:Snotice:*client connecting*: { 
  set %temp.nick $9
  .whois %temp.nick 
  .enable #iplogger  
}

#iplogger off
Raw 328:*: { 
  write IPlogger.txt %temp.nick $+ 's IP is $7 
  unset %temp.nick
  .disable #iplogger 
}
#iplogger end


Link Copied to Clipboard