mIRC Home    About    Download    Register    News    Help

Print Thread
#226222 23/09/10 04:05 PM
Joined: Sep 2010
Posts: 2
S
slang Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
S
Joined: Sep 2010
Posts: 2
Hello, I was wondering if its possible to make a /dns snippet that reply the result on the active window, not in the status window. I tried this:
Quote:
on *:DNS: {
if (!$raddress) { .echo -a Unable to resolve DNS for: $naddress | halt }
else { .echo -a DNS For: $naddress | .echo -a IP Number: $iaddress | halt }
}

but the problem it, it still shows one line in the status window:
Quote:
Dns resolving *IP*

Can i make that line show in the active window, or don't even show ?
Thank you for your time. smile


“Reality is wrong. Dreams are for real.”
slang #226232 23/09/10 08:20 PM
Joined: Aug 2010
Posts: 134
T
Vogon poet
Offline
Vogon poet
T
Joined: Aug 2010
Posts: 134
Using /.dns seems to hide both the resolving and the resolved message. If you handle displaying the resolved message, you could use /.dns instead of /dns.

Code:
alias dns !.dns
should work if you do not want to adjust all your existing scripts.


Learning something new every day.
Thels #226256 24/09/10 11:37 AM
Joined: Sep 2010
Posts: 2
S
slang Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
S
Joined: Sep 2010
Posts: 2
It worked, thanks smile


“Reality is wrong. Dreams are for real.”

Link Copied to Clipboard