Thats my little Protection snippet.
My names as always:Easy, but works. :)
I hope you will like my script.
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;Protection of U ;;
;;By Termiits ;;
;;v 1.0 ;;
;;My names as always:Easy, but works. :);;
;;You can change texts, and use script ;;
;;like your script.Because it`s protect ;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
ON *:kick:#:{
if ($knick == $me) {
kick # $nick 4L0v4sc 15v1.2 7P15R7O15T7E15C7T15I7O15N
mode # +b $address($2,2)
cs access # del $nick
}
}
ON *:ban:#:{
if ($bnick == $me) {
kick # $nick 4L0v4sc 15v1.2 7P15R7O15T7E15C7T15I7O15N
mode # -b $bnick
mode # +b $address($nick,2)
mode # -b $banmask
cs access # del $nick
}
}
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.`-.-