mIRC Home    About    Download    Register    News    Help

Print Thread
need help with /dns command #103311 18/11/04 09:24 PM
Joined: Aug 2004
Posts: 237
L
LethPhaos Offline OP
Fjord artisan
OP Offline
Fjord artisan
L
Joined: Aug 2004
Posts: 237
When I /dns someone the result is shown in the status window. How could I:
1. Prevent it from being shown in the status window
2. Show it in the active server window (/echo)
?

This all should be hidden in status window:

[2004 Thu Nov 18 22:18:19] * Dns resolving xxxxxxxxxxxxxxxxxx
-
[2004 Thu Nov 18 22:18:19] * Dns resolved xxxxxxxxxxxxxxxxx to xxx.xxx.xxx.xxx


And something like this should be shown in active channel window:

* DNS Result of <nick here> (<adress here>): xxx.xxx.xxx.xxx

Re: need help with /dns command #103312 18/11/04 09:40 PM
Joined: Nov 2003
Posts: 2,327
T
tidy_trax Offline
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
Code:
on *:dns:{  
  var %i = 1
  while ($dns(%i)) { 
    echo -abcflirt info * DNS Result of $dns(%i).nick ( $+ $dns(%i).addr $+ ): $dns(%i).ip 
    inc %i
  }
  haltdef
}


You can silence the "* Dns resolving xxxxxxxxxxxxxxxxxx" echo by using /[b].dns[/b].


New username: hixxy
Re: need help with /dns command #103313 19/11/04 11:20 PM
Joined: Aug 2004
Posts: 237
L
LethPhaos Offline OP
Fjord artisan
OP Offline
Fjord artisan
L
Joined: Aug 2004
Posts: 237
Thanx