Code:
on *:TEXT:!kickban*:#: {
  if ($2 == $me) {
    ban # $address($nick,2)
    kick # $nick Dont ban me
    cs kick $chan $nick Don't ban me, $nick $+ !
  }
}

But i need something that if this does not work (when i dont got an @ or i dont got acces to chanserv) that it does /mode $me -x join $chan mode $me +x

Can someone script this for me ?
and i know that this is not really scripted well
so if someone could make this better?

kind regards
dracoz