NSearch {
if ($active !ischan) { echo -stac own This command can only be used on a channel. | halt }
if (!$1) { echo -a *********** no valid entry was given ************* Syntax : /nsearch som*nick or /nsearch som??*nick | halt }
var %o,%counter,%i = 1
while ($nick($active,%i,a)) {
var %nicks $v1
if ( $1 == ? && $len( %nicks ) >= $len($1)) { %o = $addtok(%o,$v2,32) }
if ( $1 iswm %nicks ) { %o = $addtok(%o,$v2,32) }
inc %i
}
if (%o) {
while %o {
echo $active $gettok(%o,1-50,32)
%o = $deltok(%o,1-50,32)
inc %counter 50
}
}
}