You could also replace lines 3-5 with this.

mode # -bo+b $banmask $nick $address($nick,2)