how to save user's IP in a var? is possible? thanks
set %Ip = $addtok(%Ip,$address($nick,2),32)
But take care.. The max lengh of a var is ~800 symbols.
But take care.. The max lengh of a var is ~800 symbols.
so? I don't understand...?
In one var you can save max. ~27 ips.
You can write to a file the ip's..
write file.txt $remove($address($nick,2),*!*@)
And to find if the ip exist in the file use $read(file.txt,s,$address($nick,2))
but it's not the real IP...
ip019-11-2.dialup.edisontel.com ip is for example 180.92.102.29
Show me the full script where you use that..
but it's not the real IP...
ip019-11-2.dialup.edisontel.com
real IP is for example 180.92.102.29
Then you need to check if that is ip or not.. If not dns it..
var %host = $remove($address($nick,2),*!*@)
if ($right(%host,1) isletter) {
dns %host
}
else {
write file.tx %host
}t
write
on 1:DNS:{
var %n = $dns(0)
while (%n > 0) {
write file.txt $dns(%n).ip
dec %n
}
}
there is a syntax error...
but the first part where I put?
create dns.mrc or whatever put this [censored] in: [and ip.txt]
var %host = $remove($address($nick,2),*!*@)
if ($right(%host,1) isletter) {
dns %host
}
else {
write ip.txt %host
}
write
on 1:DNS:{
var %n = $dns(0)
while (%n > 0) {
write ip.txt $dns(%n).ip
dec %n
}
}
and load the sucker and boom youre pc explodes i should watch out
have you read and improved the script that was posted?
I don't understand about dns.mrc but I used:
on 1:DNS:{
var %n = $dns(0)
while (%n > 0) {
write ip.txt $dns(%n).ip
dec %n
}
}
and it works... thanks