that is not a mirc bug, my bad
that alias is broking it
if anyone see how to fix it can you plz tell me how;p
dns {
if ($1 == $null) { dns | return }
elseif ($1 == -c) { dns -c | return }
var %dns,%type
if ($1 == -h) { %dns = $2 | %type = -h }
elseif (. isin $1) { if (@ isin $1) %dns = $gettok($1,2,64) | else %dns = $1 | %type = -h }
else { %dns = $_nc($1) | %type = -n }
if ($show) {
_Q.dns _dnsshow _dnsfail %type %dns
if (%type == -n) set -u %::nick %dns
else set -u %::address %dns
set -u %:echo echo $color(other) -t $+ $_cfgi(eroute)
theme.text DNS
}
else _Q.dns halt halt %type %dns
}
; _Q.dns command errorcmd -h/-n nick/addr1 nick/addr2 ...
; command is _s2p, run for each resolved ($nick/$raddress/$iaddress/$naddress set)
; errorcmd is _s2p, run if resolve fails (etc. set) halt is ok etc.
; -h for hosts, -n for nicks
_Q.dns {
if ($3 == -n) _notconnected
:loop
var %whom = $cid $+ . $+ $iif($3 == -n,:) $+ $iif(@ isin $4,$gettok($4,2-,64),$4)
hadd pnp.qdns %whom $hget(pnp.qdns,%whom) $1-2
.!dns $iif($3 == -h,-h) $4
if ($5) {
tokenize 32 $1-3 $5-
goto loop
}
}
im running PnP scripts
Last edited by SiD69; 22/07/12 10:06 AM.