Deop protection (NoNameScript only)

By DJA14 on Aug 22, 2008

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

Comments

Sign in to comment.
irchainscriptz   -  Sep 05, 2008

Yup this is true as iam a user of NNS and this is not in there and he is stating that he dose use the aliases which where exclusive to the theme engine of NoNameScript.

 Respond  
a careful warchild   -  Sep 05, 2008

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.

 Respond  
DJA14   -  Aug 23, 2008

It uses ALIASES provided by the THEME ENGINE of NONAMESCRIPT.
I put that quite simply. It uses the theme engine of NoNameScript.
The script, I wrote myself. The prerequisite dependencies are part of NoNameScript.

 Respond  
Scakk   -  Aug 22, 2008

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.

 Respond  
DJA14   -  Aug 22, 2008

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 )

 Respond  
Scakk   -  Aug 22, 2008

Without even trying this I doubt it will work alone as it is part of the NoName Script itself and it taken apart from it would require a rewrite to work.

 Respond  
Cheiron   -  Aug 22, 2008

holy guacamole batman... that is one first snippet alright...

 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.