Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ;§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§
- ;§§
- ;§§ Author: play4free2
- ;§§ Title: Protection.mrc
- ;§§ Date: 03-07-2014
- ;§§ Description: Kick, Ban, Deop, No SAJoin, and No SAPart
- ;§§ protection with on and off options
- ;§§
- ;§§ Instructions: Type Alt + r go to file new, Copy and paste this
- ;§§ into the window and Save As Protection.mrc
- ;§§
- ;§§ Credits to Gekkie irc.420-hightimes.com for the original kick ban deop
- ;§§
- ;§§ DO NOT CHANGE ANYTHING IN THIS FILE
- ;§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§
- #banprot on
- on 1:BAN:#:{
- if ($banmask == $address($me,0)) || ($banmask == $address($me,1)) || ($banmask == $address($me,2)) || ($banmask == $address($me,3)) || ($banmask == $address($me,4)) || ($banmask == $address($me,5)) || ($banmask == $address($me,6)) || ($banmask == $address($me,7)) || ($banmask == $address($me,8)) || ($banmask == $address($me,9)) || ($banmask == $address($me,10)) || ($banmask == $address($me,11)) || ($banmask == $address($me,12)) || ($banmask == $address($me,13)) || ($banmask == $address($me,14)) { goto revenge } | else { goto end }
- :revenge
- .msg chanserv unban $chan $me
- .msg chanserv invite $chan $me
- mode $chan -b $banmask
- ban -u30 $chan $nick 2
- kick $chan $nick Ban Protection. Don't ban me!
- :end
- halt
- }
- #banprot end
- #deopprot on
- on 1:DEOP:#:{
- if ($opnick == $me) { goto revenge } | else { goto end }
- :revenge
- .msg chanserv op $chan $me
- .timer 1 2 mode $chan -o $nick
- .timer 1 3 kick $chan $nick Deop Protection. Don't Deop me!
- :end
- halt
- }
- #deopprot end
- #kickprot on
- on 1:KICK:#:{
- set %kchan $chan
- set %kicker $nick
- if ($knick == $me) { goto revenge } | else { goto end }
- :revenge
- .msg chanserv invite $chan $me
- .timer 1 3 join %kchan
- .timer 1 4 mode %kchan -o %kicker
- .timer 1 5 ban -u30 $chan $nick 2
- .timer 1 6 kick %kchan %kicker Kick Protection. Don't Kick me!
- :end
- unset %kchan
- halt
- }
- on 1:OP:#:{
- if ($opnick == $me) && (%kicker ison $chan) { goto revenge2 } | else { goto end2 }
- :revenge2
- kick $chan %kicker Kick Protection. Don't Kick me!
- :end2
- unset %kicker
- halt
- }
- #kickprot end
- #sajoin on
- on 1:SNOTICE:*You were forced to join*: {
- .timer 1 2 msg $7 4SAJoin me? Not this time bye bye :P
- .timer 1 3 part $7
- halt
- }
- #sajoin end
- #sapart on
- on 1:SNOTICE:*You were forced to part*: {
- .timer 1 3 join $7
- .timer 1 4 msg $7 4SAPart me? I don't think so :P
- halt
- }
- #sapart end
- menu menubar,status {
- .-
- .Protection
- .$iif(%banprot,$style(1)) Ban $iif(%banprot,On,Off) {
- if (%banprot) { unset %banprot | .disable #banprot }
- else { set %banprot on | .enable #banprot }
- }
- .-
- .$iif(%kickprot,$style(1)) Kick $iif(%kickprot,On,Off) {
- if (%kickprot) { unset %kickprot | .disable #kickprot }
- else { set %kickprot on | .enable #kickprot }
- }
- .-
- .$iif(%deopprot,$style(1)) DeOp $iif(%deopprot,On,Off) {
- if (%deopprot) { unset %deopprot | .disable #deopprot }
- else { set %deopprot on | .enable #deopprot }
- }
- .-
- .$iif(%sajoin,$style(1)) SAJoin $iif(%sajoin,On,Off) {
- if (%sajoin) { unset %sajoin | .disable #sajoin }
- else { set %sajoin on | .enable #sajoin }
- }
- .-
- .$iif(%sapart,$style(1)) SAPart $iif(%sapart,On,Off) {
- if (%sapart) { unset %sajoin | .disable #sapart }
- else { set %sapart on | .enable #sapart }
- }
- .-
- }
Add Comment
Please, Sign In to add comment