try this, one possible fix:

Code:
 unset $var(%bnick*,$(%i))



"The only excuse for making a useless script is that one admires it intensely" - Oscar Wilde