mIRC Homepage
Posted By: LethPhaos need help with /dns command - 18/11/04 09:24 PM
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
Posted By: tidy_trax Re: need help with /dns command - 18/11/04 09:40 PM
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].
Posted By: LethPhaos Re: need help with /dns command - 19/11/04 11:20 PM
Thanx
© mIRC Discussion Forums