well $bnick will only work if the banmask includes a nickname. you are better off useing
if ($banmask iswm $address($me,5)) {
like i said on ur other code please test them before you post them.