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 ;(