You have to have an auto op in the channel you are in for this to work properly. What it does is when you are de-oped, it /part's you out of the channel, then rejoins you and de-ops the person who de-oped you. It also says a little funny thing whenever anyone else gets de-oped. enjoy! and please critique.
on 1:DEOP:#: {
if ($me isop $chan) {
msg $chan ha ha(or anything you wish to say)
}
else {
part $chan
timer 1 3 join $chan
timer
timer 1 5 mode $chan -o $nick
timer
}
}
on 1:DEOP:#: {
if ((( $opnick == $me ) && ( X ison $chan ))) {
if (( $nick != X ) && ( $nick != $me )) {
.msg x unban $chan $me
.msg x op $chan $me
.msg x deop $chan $nick
.notice $nick Hawkee.com DEOP Protection
.msg x verify $nick
}
if ( $nick == X ) {
.msg x unban $chan $me
.msg x op $chan $me
}
}
}
If there is a chanserv then instead of /part /join you can do /cs op $chan
and you also dont need to use /\'s and i dont think the \"timers\" that timer nothing are needed
on 1:DEOP:#: {
if ($me isop $chan) {
/msg $chan ha ha(or anything you wish to say)
}
if you deop\'d you cant be oped in that channel
heres what i would do
on *:DEOP:#: {
if ($opnick == $me) {
;if chanserv cs op $me
part $chan ORLY?
timer 1 3 join $chan
timer 1 5 mode $chan -o $nick
}
}