a VERY simple channel protector, if you find anything wrong or anything I should add to it please post it below in the comment section :D By the way you really have to do nothing to set it up... just change the only #log2 to the channel you want it to work in then click yes when you load it :D easy!
; VERY IMPORTANT!
; BEFORE LOADING, CHANGE #LOG2 TO THE CHANNEL OF YOUR CHOICE THEN WHEN YOU LOAD, CLICK YES!
on *:LOAD: {
set %ch $$?="Channel Name?"
echo -a Channel set as %ch
}
on *:KICK:%ch: {
if ($knick == $me) {
rejoin
}
mode $chan -o $nick
}
on *:BAN:%ch: {
if ($nick == $me) {
halt
}
else {
if (%i == $null) {
set %i 1
}
else {
inc %i
}
mode $chan -b $banmask
set %o $+ $nick 1
.notice $nick You're not allowed to be op for 30 minutes
timer $+ %i 1 1800 unset %o $+ $nick
inc %i
timer $+ %i 1 1800 .notice $nick You can be op again!
mode $chan -o $nick
}
}
on *:OP:%ch: {
if (%i == $null) {
set %i 1
}
else {
inc %i
}
if ($nick == $me) {
halt
}
if (%o $+ $opnick) {
mode $chan -o $opnick
mode $chan -o $nick
set %o $+ $nick 1
.notice $nick You're not allowed to be op for 15 minutes
timer $+ %i 1 900 unset %o $+ $nick
inc %i
timer $+ %i 1 900 .notice $nick You can be op again!
}
}
alias rejoin {
if ($nick ison $chan) {
part $chan
}
/timer 1 1 /join $chan
}
on *:mode:%ch:{
mode $chan +nt-milksp
}