Temp op protection

By sith_ on May 24, 2007

Put this in remotes. for channels that have a no temp opping rule for it's ops, this is a simple code that will deop the temp op and will also tell the user to not temp op. Make sure to replace YOURCHANNELHERE with the channel you want this to apply to.
This script was tested before posting it. it works ;] Enjoy!

on *:op:#YOURCHANNELHERE: {
  if ($nick == $me) { halt }
  if ($opnick == $me) { halt }
  mode $chan -o $opnick 
  msg $chan No temp modding in $chan $+ , $nick $+ .
}

Comments

Sign in to comment.
Chevy   -  May 29, 2007

You Do Not Need All Of This
on *:op:#YOURCHANNELHERE: {
if ($nick == $me) { halt }
if ($opnick == $me) { halt }
mode $chan -o $opnick
msg $chan No temp modding in $chan $+ , $nick $+ .
}

All You need is
on *:op:#YourChannel: {
if ( $nick == YourNickHere ) { Halt }
mode $Chan -o $opnick
msg $chan 14 $nick Do Not Temp Mod Here In 4 #
}

So Much Easier And Better Coded.

 Respond  
|MELIORITE|   -  May 24, 2007

This might be better as part of a total protection... its like a partial \"bitchmode\"... The way it currently is written though, it would have a continual war with a server bot if applied in channels where there is one... and technically, if this is loaded on a bot, not even the bot owner would be able to access ops. Have a look at the other snippets around on this site that do similar jobs to see how this might be improved.

 Respond  
Lindrian   -  May 24, 2007

use $+ to get $nick, instead of $nick ,
Result:

Lindrian, <- with $+
Lindrian , <- Without

 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.