if you do
/sockread &bvar
&bvar is not destroyed when the script is done.
even in the commandline, //echo -a $bvar(&bvar,0) will reply >0
noticed this behaviour in my script.
RedAlert (#mirc on ircnet) narrowed it down to this.
simple fix is to /bunset &bvar at the beginning of the event...