Prevents others from deopping you, allows only you to deop yourself. Requires Anope services, NoNameScript.
/nodeop: Syntax /nodeop <on|off>
alias nodeop {
if ($1 == on) {
if ($group(#nodeop).status == $1) thmecho Error: Deop protection is already enabled.
else { .enable #nodeop | thmecho Deop protection is now enabled. }
}
elseif ($1 == off) {
if ($group(#nodeop).status == $1) thmecho Error: Deop protection is already disabled.
else { .disable #nodeop | thmecho Deop protection is now disabled. }
}
else thmecho * /nodeop: Error: Invalid parameters.
}
#nodeop on
on !*:rawmode:#:{
if ( - isin $1 ) && ( q isincs $1 ) && ( $gettok($2-,$poscs($right($1,-1),q),32) == $me ) { .msg ChanServ owner $chan | .msg ChanServ halfop $chan | noop $nntip(Personal protection $iif($scid(0) > 1,$nbr($curconserv)),$nick triggered your deop protection in $chan $+ . Auto re-opping...) }
if ( - isin $1 ) && ( a isincs $1 ) && ( $gettok($2-,$poscs($right($1,-1),a),32) == $me ) { .msg ChanServ protect $chan | .msg ChanServ halfop $chan | noop $nntip(Personal protection $iif($scid(0) > 1,$nbr($curconserv)),$nick triggered your deop protection in $chan $+ . Auto re-opping...) }
if ( - isin $1 ) && ( o isincs $1 ) && ( $gettok($2-,$poscs($right($1,-1),o),32) == $me ) { .msg ChanServ op $chan | .msg ChanServ halfop $chan | noop $nntip(Personal protection $iif($scid(0) > 1,$nbr($curconserv)),$nick triggered your deop protection in $chan $+ . Auto re-opping...) }
if ( - isin $1 ) && ( h isincs $1 ) && ( $gettok($2-,$poscs($right($1,-1),h),32) == $me ) { .msg ChanServ halfop $chan | noop $nntip(Personal protection $iif($scid(0) > 1,$nbr($curconserv)),$nick triggered your deop protection in $chan $+ . Auto re-opping...) }
if ( - isin $1 ) && ( v isincs $1 ) && ( $gettok($2-,$poscs($right($1,-1),v),32) == $me ) { .msg ChanServ voice $chan | .msg ChanServ halfop $chan | noop $nntip(Personal protection $iif($scid(0) > 1,$nbr($curconserv)),$nick triggered your deop protection in $chan $+ . Auto re-opping...) }
}
#nodeop end
Nice script DJ see you on queercommons ^.^ and scakk, this does work with NNS >.> and yes it does need NNS to work, as he already stated >.> DJ doesn't rip other scripts and pass them off as his own, im sure if you look throught the .nns scripts on the mIRC directory for nns you will find that this script isn't included in NNS, mainly because NNS was created for appearance rather than protection, the only bit of protection it really has is it's blacklist.
I loaded it and then typed /nodeop on and got the below error
THMECHO Unknown command
Also as you stated in the Introduction "Requires Anope services, NoNameScript." that means that the NoNameScript is needed for it to work correctly as parts of it are still a part of the NoNameScript. Also there appears to be aliases in your snippet that have nothing listed in it telling it what to do.
Scakk I made it... It's not part of NoNameScript.
However I used a couple of aliases which where exclusive to the theme engine of NoNameScript.
Use your brain before your fingers if you don't wanna become someone hated on.
$nntip: causes a tip balloon to be displayed with the NoNameScript logo. ( $tip )
thmecho: echos to the active window with the colour set in the theme. ( echo -a )