mIRC Home    About    Download    Register    News    Help

Print Thread
#77254 30/03/04 04:23 PM
Joined: Dec 2002
Posts: 8
S
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
S
Joined: Dec 2002
Posts: 8
Hello im trying to do something by using on join. What im trying to do is when someone joins my chan if there ip is all number i want it to try and dns that ip and write it to like hosts/<resolved ip>
I got the writing down but i cant seem to figure out on how to make a if statement go if its all numbers only i seen a letters and numbers but thats not what i want can any help?

#77255 30/03/04 04:25 PM
Joined: Dec 2002
Posts: 1,541
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Dec 2002
Posts: 1,541
how about:

on *:join:#channel: {
if (*.*.*.* iswm $address) { dns $nick }
}

Would that work?? *shrugs sholders - no clue - never tried it*


Those who fail history are doomed to repeat it
#77256 30/03/04 04:29 PM
Joined: Dec 2002
Posts: 8
S
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
S
Joined: Dec 2002
Posts: 8
Nope i dont think that will work i tried it anyhow and no go =\

#77257 30/03/04 04:46 PM
Joined: Jan 2003
Posts: 2,523
Q
Hoopy frood
Offline
Hoopy frood
Q
Joined: Jan 2003
Posts: 2,523
Code:
on !*:join:#yourchannel: if $longip($site) { dns $nick }
$longip(<input>) returns an integer number when <input> is an IP address, otherwise it returns $null.


/.timerQ 1 0 echo /.timerQ 1 0 $timer(Q).com
#77258 30/03/04 04:49 PM
Joined: Dec 2002
Posts: 8
S
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
S
Joined: Dec 2002
Posts: 8
thanks man i never delt with ips so i didnt know heh thank u


Link Copied to Clipboard