on 1:INPUT:#:{ ;Nick complete by JesseR (goes in remotes) ;type "partofnick; message" in a channel. (semicolon) ;it will beep if no nicks match. ;check if the last letter of the first word (in anythign you type) is a semicolon. if ( $right($1,1) == ; ) { ;save the stuff in the first word (except the semicolon) into %n set %n $left($1,$calc($len($1) - 1)) ;first, look for nicks that start with the stuff you typed set %i 1 :loop1 set %p $nick(#,%i) if ( %n $+ * iswm %p ) { goto out } inc %i if (%i <= $nick(#,0) ) goto loop1 ;if that fails, look for nicks that contain the stuff you typed (anywhere in the nick) set %i 1 :loop2 set %p $nick(#,%i) if ( * $+ %n $+ * iswm %p ) { goto out } inc %i if (%i <= $nick(#,0) ) goto loop2 ;if you're here, then the script failed to find any nicks. beep, and exit without saying anything. beep | halt :out ;add colors or whatever here if you want say %p $+ : $2- halt } }