doesnt work
maybe coz i already have dns script but i dont think it should crossover with something do you?
code:
ON *:DNS:{
if ($dns(0) == 0) {
echo $color(other) -ts Unable to resolve $iif($iaddress,$iaddress,$dns(0).addr)
}
else {
var %numhosts $dns(0), %host = 0
var %hosts
while (%host < %numhosts) {
inc %host 1
set %hosts %hosts $iif($dns(1) == $dns(1).ip,$dns(%host).addr $+([,$ccode($dns(%host).addr),]),$dns(%host).ip) $+ $chr(44)
}
echo $color(other) -ts Resolved $dns(1) to $left(%hosts,$calc($len(%hosts)-1))
}
halt
}
(c) by codemastr