Yes i will comment i didnt test this but i dont really need to i can see flaws.First thing is u dotn need to set anything for either a kick or a ban for kick you can use $knick so its if ($knick == $me) { do this do that Same with the BAN but its $bnick instead if ($bnick == $me) { do this do that.Also your not kicking anything replace $2 with $nick an with your address ban use the same $address($nick,2) with the ban one you need to do the same but this is set up for a nickname ban so they ban your nickname you want to unban your nick name use mode $chan -b $bnick other wise you need to use $banmask Ill use this as an example:
on :BAN:: {
if ($bnick == $me) {
if ($banmask iswm $address($me,5)) {
mode $chan -b $bnick
mode $chan -b $banmask
kick $nick byebye >)
}
}
}
Bye adding both the $me and the $banmask you can unban both your nickname an your host.Also you hev bracket issues theres a 9 where a ( should be.So you replace teh var with $knick an $bnick add $banmask and fix the kick an ban targets an you should be good to go.`-.-