MY LITTLE PROTECTION

By TermYT3 on Jan 05, 2008

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
  }
}

Comments

Sign in to comment.
TermYT3   -  Jan 06, 2008

EDIT: All works, found mistake.:)

 Respond  
TermYT3   -  Jan 06, 2008

Well i have edit my script, but i dont change # to $chan.I dont know - this script works or no.

 Respond  
LucSatise   -  Jan 06, 2008

@TermYT3 Ive had problems using # so technically it is safer to use $chan

 Respond  
EL   -  Jan 06, 2008

@ BourneIdent187 ,Thats correct.Open 3 close 3.`-.-

 Respond  
BourneIdent187   -  Jan 06, 2008

on :BAN:: {<---------
if ($bnick == $me) {<--------
if ($banmask iswm $address($me,5)) {<----------
mode $chan -b $bnick
mode $chan -b $banmask
kick $nick byebye >)
}
}
}

  • I have question -
    Why you have three
    }
    }
    }
    ?
    3 open {{{ brackets therefor 3 closing }}}
    :)
 Respond  
TermYT3   -  Jan 06, 2008

and for bonus need use # ,not $chan !

 Respond  
TermYT3   -  Jan 06, 2008

on :BAN:: {
if ($bnick == $me) {
if ($banmask iswm $address($me,5)) {
mode $chan -b $bnick
mode $chan -b $banmask
kick $nick byebye >)
}
}
}

  • I have question -
    Why you have three
    }
    }
    }
    ?
 Respond  
EL   -  Jan 05, 2008

Hope that makes sense im dealin with my server not lettin people connect atm so if you hev any questions or im unclear please say so.`-.-

 Respond  
EL   -  Jan 05, 2008

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.`-.-

 Respond  
TermYT3   -  Jan 05, 2008

Smth is wrong.Please help.

 Respond  
TermYT3   -  Jan 05, 2008

Any comments? :)

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.