mIRC Home    About    Download    Register    News    Help

Print Thread
#38266 25/07/03 06:27 PM
Joined: Dec 2002
Posts: 174
P
Vogon poet
OP Offline
Vogon poet
P
Joined: Dec 2002
Posts: 174
Does anyone know the Raw for some whois info

im writing a script for whois info

and im looking for the petuclar raw that shows the ident and isp, or the users isp

can anyone help me with that?

Thank you.

#38267 25/07/03 06:28 PM
Joined: Dec 2002
Posts: 3,138
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
Why don't you use /debug? That will give you all the information you need.

<- :blueyonder3.uk.quakenet.org 311 Collective Collective collective Collective.users.quakenet.org * :Collective

#38268 25/07/03 06:30 PM
Joined: Dec 2002
Posts: 174
P
Vogon poet
OP Offline
Vogon poet
P
Joined: Dec 2002
Posts: 174
Cause im using it to write in a log,

on *:join:*:{ write logtext.txt $network $nick joined with (isp here) }

the raw would allow that.

#38269 25/07/03 06:31 PM
Joined: Dec 2002
Posts: 2,809
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 2,809
That doesn't explain why you couldn't use /debug to get the numerics...

#38270 25/07/03 06:34 PM
Joined: Dec 2002
Posts: 3,138
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
/debug is used to show you what the server sends you, the point was that that would allow you to get the raw number.

In this case you don't even need a raw, you can just use $gettok($address,2,64) to get the host of the person who's joining.

Edit: or just use $site, forgot about that identifier. You can use $gettok($address,1,64) to get the ident.

#38271 25/07/03 06:40 PM
Joined: Dec 2002
Posts: 174
P
Vogon poet
OP Offline
Vogon poet
P
Joined: Dec 2002
Posts: 174
the only problem with that is,
on the server im using it on,
the isp comes up funky,
as i am an oper, i get to see the real hostmask,
but only if i do a whois

jpfymk@InterGOV.EA153CC629C3E6.TR

thats the example

but here is what im seeing

Paul_03396E originates from pc1-midd3-4-cust57.midd.cable.ntl.com


#38272 25/07/03 06:41 PM
Joined: Dec 2002
Posts: 2,809
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 2,809
As was said, USE /DEBUG. It will show you which text is which numerics!

#38273 25/07/03 06:49 PM
Joined: Dec 2002
Posts: 174
P
Vogon poet
OP Offline
Vogon poet
P
Joined: Dec 2002
Posts: 174
15:48] <- :ChanServ!services@intergov.org MODE #operations +o Paul_03396E
[15:49] <- :Paul_03396E!jpfymk@InterGOV.EA153CC629C3E6.TR PRIVMSG #operations :sir if u kick me out it auto relogs me back into the chat
[15:49] <- :Paul_03396E!jpfymk@InterGOV.EA153CC629C3E6.TR PRIVMSG #operations :hint hint
[15:49] <- :Paul_03396E!jpfymk@InterGOV.EA153CC629C3E6.TR PRIVMSG #operations :its weird
[15:49] <- :Paul_03396E!jpfymk@InterGOV.EA153CC629C3E6.TR PRIVMSG #operations :lol

thats what comes out,

on *:join:*:{ debug -npt @moo }

#38274 25/07/03 07:02 PM
Joined: Dec 2002
Posts: 3,138
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
You obviously don't get it...

1) Type /debug @debug.
2) /whois someone
3) Check the @debug window. It will show you the data that the server has sent you since you opened the window. It should look something like this:
Code:
&lt;- :blueyonder3.uk.quakenet.org [color:red]311[/color] Collective Collective collective Collective.users.quakenet.org * :Collective
&lt;- :blueyonder3.uk.quakenet.org [color:red]319[/color] Collective Collective :#channels
&lt;- :blueyonder3.uk.quakenet.org [color:red]312[/color] Collective Collective blueyonder3.uk.quakenet.org :bygames QuakeNet IRC Server
&lt;- :blueyonder3.uk.quakenet.org [color:red]330[/color] Collective Collective Collective :is authed as
&lt;- :blueyonder3.uk.quakenet.org [color:red]338[/color] Collective Collective collective@host.hidden 255.255.255.255 :Actual user@host, Actual IP
&lt;- :blueyonder3.uk.quakenet.org [color:red]317[/color] Collective Collective 733 1058429965 :seconds idle, signon time
&lt;- :blueyonder3.uk.quakenet.org [color:red]318[/color] Collective Collective :End of /WHOIS list.

The red pieces of text here are raw numbers. You will need to find the line that contains the data you want to save, and then use it in a raw event, e.g. if you wanted to take the data from raw 311 you would put this code in your remotes:
Code:
raw 311:*:{
  echo -a $1-
}

That will echo the data in raw 311 whenever it is sent to you. To do what you want to do you will have to /whois the user when they join and then use a raw event to save the information to a file.


Link Copied to Clipboard