Quote:
I'm sure there's a better way though
Yes! You can use $fline to access the nicklist of a channel, $fline accepts wildcard. Also, using "!t &" as the matchtext will make sure $2 is filled, "!t *" is currently match on "!t " which is probably not wanted.
Code:
on *:text:!t &:#:{
 var %f $fline($chan,$2*,0,1)
 if (!%f) msg $chan Can't find a nickname matching $qt($2)
 elseif (%f > 1) msg $chan Multiple nicknames match $qt($2) $+ , please give a better name
 else {
   var %nick $fline($chan,$2*,1,1)
   msg $chan do stuff with %nick
 }
}


#mircscripting @ irc.swiftirc.net == the best mIRC help channel