mIRC Home    About    Download    Register    News    Help

Print Thread
#19077 13/04/03 06:48 PM
Joined: Dec 2002
Posts: 29
D
druid Offline OP
Ameglian cow
OP Offline
Ameglian cow
D
Joined: Dec 2002
Posts: 29
How create when i do /dns nick come this *** nick IP is USERIP , when i do /dns IP come *** IP host is: hostmask


--
http://www.globirc.net
irc.globirc.net
#19078 14/04/03 01:05 AM
Joined: Dec 2002
Posts: 29
H
Ameglian cow
Offline
Ameglian cow
H
Joined: Dec 2002
Posts: 29
I believe the simplist way to achieve the desired effect is to ignore the built in /dns command and use /userhost and /userip. They're all equally useless if the network you're on uses hostmasking, but here's a simple script for /userip and /userhost.

raw 302:*:{
echo -ta *** $gettok($2,1,61) is $right($gettok($2,2,61),$calc($len($gettok($2,2,61)) - 1))
halt
}
raw 340:*:{
echo -ta *** $gettok($2,1,61) is $right($gettok($2,2,61),$calc($len($gettok($2,2,61)) - 1))
halt
}

Throw it in your 'remote' section. Then just type /userhost $nick or /userip $nick and it should give you what you want back. Hope it helps.

-hobo

#19079 14/04/03 05:53 AM
Joined: Dec 2002
Posts: 2,809
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 2,809
As far as I know, Undernet (ircu) is the only thing that makes the /userip command available, so relying on it is not a good idea.

#19080 14/04/03 06:21 AM
Joined: Dec 2002
Posts: 2,985
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 2,985
Code:
ON *:DNS: {
  if ( $raddress == $null ) {
    echo $colour(info2) -ta DNS lookup was unsuccessful
    halt
  }
  if ( $raddress != $null ) {
    echo $colour(info2) -ta >The DNS lookup you requested is successful
    if ($nick != $null) {
      echo $colour(info2) -ta Nickname of DNS lookup:14 $nick
    }
    if ($nick == $null) {
      echo $colour(info2) -ta Nickname of DNS lookup:14 Not applicable
    }
    echo $colour(info2) -ta Named address:14 $naddress
    echo $colour(info2) -ta IP address:14 $iaddress
    echo $colour(info2) -ta Resolved address:14 $raddress
  }
  haltdef
}


Link Copied to Clipboard