well heres your on ban event with its proper brackets
on ban:#: {
if (($banmask iswm $address($me,5)) && ($me == $bnick)) {
cs unban $me
cs invite $chan $me
timer 1 2 /cs ban $nick $address
cs akick $nick $address
msg $chan thats one less fucktard in the room
}
}
i also noticed that you have two "on ban" events, only one is needed.
your first one you have in the protection group, but the events your using outside of the protection group, still protects, so in a way youve just doubled your script and made it so it cant be turned off properly.