To make it even simpler:
Code:
on @!*:BAN:#: {
  if ($banmask !iswm $address($me,5)) { return }
  if (%on.ban == on) { %on.ban.kin $replace(%on.ban.target,@chan,$chan,@nick,$nick) $replace(%on.ban.msg,@chan,$chan,@nick,$nick,@me,$me) }
  mode $chan -bo+b $banmask $nick $address($nick,2)
  kick $chan $nick Don't mess with x3RiouS man!
}

My question though - what's the purpose of setting %on.ban.kin? Just curious as it seems to serve no purpose in this script.