mIRC Home    About    Download    Register    News    Help

Print Thread
on fail small remote #75352 15/03/04 04:38 PM
Joined: Oct 2003
Posts: 48
R
r00ted Offline OP
Ameglian cow
OP Offline
Ameglian cow
R
Joined: Oct 2003
Posts: 48
Hey guys, I got the following remote:
Code:
on *:GETFAIL:*.txt:{ ignore -ct $address( $nick,3 ) }


basically, i want the remote to ignore the "IP address", right now it looks like it is ignoring the hostname address as shown in the few examples below:
n0=*!*john@*.brtn.cable.ntl.com,channel,ctcp,"UnderNet"
n1=*!*CHipps@*.ri.ri.cox.net,channel,ctcp,"UnderNet"
n2=*!
n5=*!*mmw@*.users.undernet.org,channel,ctcp,"UnderNet"
n6=*!*Old_Sped@*.client.comcast.net,channel,ctcp,"UnderNet"

but, then there is also

n3=*!*ganghiss@68.116.250.*,channel,ctcp,"UnderNet"

where it managed to ignore the IP address.

So, how would i make it ignore IP addresses?


thanks much!

Re: on fail small remote #75353 15/03/04 07:26 PM
Joined: Dec 2002
Posts: 1,922
O
Online Offline
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,922
On IRC you don't ignore IPs, you ignore hosts; and whether the host is a numeric IP, a resolved address or a funny quote is up to the server. You can still get the sender's IP from $get($nick).ip, but if you try to /ignore it chances are that it won't have any effect.

Re: on fail small remote #75354 15/03/04 07:32 PM
Joined: Oct 2003
Posts: 48
R
r00ted Offline OP
Ameglian cow
OP Offline
Ameglian cow
R
Joined: Oct 2003
Posts: 48
oh wow lol. well, I have had luck using /ignore 200.201.5.10 (example only)

but of course, itll ignore all nicks who use/get that IP address, so if "George" is online with taht IP, itll ignore him, but if George logs off his ISP, and Ben signs into his ISP and gets that IP Address, it will also ignore Ben as well. Had no problem with using /ignore ip values before to ignore text from nicks. was just hoping there could be a way to ignore the IP instead so i can check my firewalls logs to see if it was an access violation or if it was just a time out.

Re: on fail small remote #75355 15/03/04 07:50 PM
Joined: Dec 2002
Posts: 1,922
O
Online Offline
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,922
It is possible that /ignore on an IP will work, but only if that's the user's hostname. Usually the host is a resloved address, because the server is doing a /dns on your IP whenever you connect.

Re: on fail small remote #75356 16/03/04 03:48 AM
Joined: Oct 2003
Posts: 48
R
r00ted Offline OP
Ameglian cow
OP Offline
Ameglian cow
R
Joined: Oct 2003
Posts: 48
oh ok. is there any "extensive" scripting possible that would let it ignore the IP address? I noticed when they initiate the DCC connect, it shows the sender's IP address in the status, any way for mIRC to grab that address? :P

Re: on fail small remote #75357 16/03/04 03:40 PM
Joined: Dec 2002
Posts: 1,922
O
Online Offline
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,922
Ctcp *:dcc send *:?:{
var %ip = $longip($gettok($1-,-3,32))
echo -s IP of $nick is: %ip
if %ip == 127.0.0.1 { halt }
}

If you want to see the format of the CTCP message, open a debug window by typing: /debug @debug. It is also recommended that you read /help dcc resume protocol