Find 3.3

By EliteT0kr on Oct 01, 2004

/find

For example:

/find 24

  • /find: Scanning #AllNiteCafe for possible user hosts containing: 24.
  • /find: Total users matching 24 on #AllNiteCafe: 3
  • /find: Nicks matching 24: amor, Tavy, ^sweetie^. To view these users addresses, enter /fstats.

/fstats

  • /find: Stats: amor@200.106.124.Fw194=, Tavy@=WAakc-46-424-67-001.twcny.rr.com, ^sweetie^@202.154.241.aQ267=.

Works if you wanna find a specific connectin type in a channel.

alias find {
  ;By Legion (EliteT0kr) /find < Wild Card Address >
  if ($1) && ($server != $null) { 
    unset %ialad | echo 3 -a * /find: Scanning # for possible user hosts containing: $1 $+ . | echo 3 -a * /find: Total users matching $1 on # $+ : $ialchan(*!*@* $+ $1 $+ *,#,0) | .ial on 
    if ($ialchan(*!*@* $+ $1 $+ *,#,0) > 0) {
      var %i 1 | while (%i <= $ialchan(*!*@* $+ $1 $+ *,#,0)) { 
        var %ial %ial $ialchan(*!*@* $+ $1 $+ *, #, $abs(%i)).nick $+ $chr(44) | set %ialad %ialad $ialchan(*!*@* $+ $1 $+ *,#,$abs(%i)).nick $+ @ $+ $gettok($ialchan(*!*@* $+ $1 $+ *,#,$abs(%i)).addr,$calc($findtok($ialchan(*!*@* $+ $1 $+ *,#,$abs(%i)).addr,@,1,64) -1) $+ -,64)) $+ $chr(44) | inc %i   
      }
      echo 3 -a * /find: Nicks matching $1 $+ : $remtok(%ial,$right(%ial,1),$numtok(%ial,44),44) $+ .  To view these users addresses, enter /fstats.
    } 
  }
  elseif (!$1) { 
    echo 2 -a * /find: No request specified.  $+ $1
  }
  elseif (!$server) { 
    echo 2 -a * /find: Not connected to a server.
  }
}

alias fstats {
  if ($len(%ialad) > 0) { 
    echo 3 -a * /find: Stats: $remtok(%ialad,$chr(44),$numtok(%ialad,44),44) $+ .
  }
  else { 
    echo 2 -a * /fstats: No information bank.
  }
}

Comments

Sign in to comment.
Ryodox   -  Oct 02, 2004

The comparisons aren\'t reversed.

 Respond  
EliteT0kr   -  Oct 02, 2004

j/w why are the mIRC Greater Then (<) / Lesser Than (>) Comparisons reversed? like for example in the if statement in fstats, it should be if ($len(%ialad) < 0) not $len(%ialad) > 0). Get it?

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.