mIRC Home    About    Download    Register    News    Help

Print Thread
#88927 02/07/04 09:55 PM
Joined: Mar 2004
Posts: 108
X
Vogon poet
OP Offline
Vogon poet
X
Joined: Mar 2004
Posts: 108
ok, a friend and i are trying to figure out how to pull info from this line(s):

[5:44pm] <nick> -> irc.server.com NOTICE nick1 : DCC Send something.txt (111.111.111.111)
[5:44pm] <nick> -> irc.server.com PRIVMSG nick1 :DCC
SEND something.txt 211801718 1025 16762

the above is in the debug window.. but i dont see a raw or identifier for it.. is there a way to get it? and what is the 211801718 number.. the rest i know.. any help would be great.

<edit> irc.server.com NOTICE nick1 : <no space> DCC Send
darn emoticons laugh

-cheers -thx in advance


Last edited by xxxYODAxxx; 02/07/04 09:59 PM.

sometimes these are as bad as quit messages :tongue:
#88928 02/07/04 10:11 PM
Joined: Apr 2004
Posts: 45
V
Ameglian cow
Offline
Ameglian cow
V
Joined: Apr 2004
Posts: 45
I dont know the raw associated with that offhand, but here's a little debugger I use all the time:

Code:
; RAW DEBUGGER
;raw *:*: { echo -a $numeric $+ : $1- }


Remove the ; from in front of raw *:*: whenever you need to see what raws are being used, then put it back when you're done.

-Venoman

#88929 02/07/04 10:31 PM
Joined: Mar 2004
Posts: 108
X
Vogon poet
OP Offline
Vogon poet
X
Joined: Mar 2004
Posts: 108
yes i tried that already.. i do the same thing.. well i put it to status wink


sometimes these are as bad as quit messages :tongue:
#88930 03/07/04 04:46 AM
Joined: Aug 2003
Posts: 314
S
Fjord artisan
Offline
Fjord artisan
S
Joined: Aug 2003
Posts: 314
You can intercept both lines individually using their respective event handlers. The first is a notice and its information can be grabbed through the following method:

Code:
on ^*:notice:DCC Send *:?:{ 
  echo $color(i) -ea $nick $4 is preparing to DCC Send you $3
  haltdef 
}


The ^ event prefix works with the /haltdef command to hide the notice you would normally see, should you want to hide it.

To grab the next set of information you simply use a CTCP event with "DCC Send" as matchtext:

Code:
ctcp *:DCC Send:*:{ echo $color(i) -ea $nick ( $+ $longip($4) $+ ) is now sending you $3 ( $+ $bytes($6).suf $+ ) on port $5 }


As you can see, I used that number you were referring to (211801718 in your case) and turned it into an IP Address. This is known as the long value of an IP address and you can convert it both ways using the $longip identifier.

Of course there is another method of parsing this information through means of the /debug -i command which I can offer information upon should you require it.


Link Copied to Clipboard