jaytea commented on a Page, Last Nick & Channel Name Tab Completion  -  Aug 15, 2011

good point

you can compare $1- to $editbox($active):

on *:tabcomp:#:{
  if (!%tabcomp) || ($1- == $gettok($editbox($active), 1-, 32)) {

    ; your script

  }
  unset %tabcomp
}

now, it's still possible for the two to be equal if, for example, i type 'j' then press tab to get 'jaytea' and tab again. if there's no other 'j*' nicks in the channel, your script will fire. the only way to prevent this is by storing data over successive calls to on TABCOMP, since there is no way to access the history of completions ;(

 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.