ModeLock

By Zachery on Oct 09, 2005

This Is A Simple Mode Lock. It Prevents Any One From Setting Modes In Your Channel Except 2 Nicks Plus Yourself. Put It In A New Remote File And Give Your Bot Owner Status And Your Bot Is Ready. :)

;Mode Lock Made By Zach music 101 at kgone dot com
;Credits To KuTsuM And Tobearruler For The First on *:MODE:#: Part
;The Raw Modes I Made
;No Modes Can Be (un)Set Except For <nick1> And <nick2>
on *:MODE:#: { 
if ( !$istok($me <nick1> <nick2>,$nick,32) ) {  
    mode $chan $replacex($1-,+,-,-,+)  
  } 
}
;Makes It So No One Can Give Any One Status Except Yourself(bot) and Two Other Nicks
on *:RAWMODE:#:{
if ( !$istok($me <nick1> <nick2>,$nick,32) ) {    if (+ isin $1) {
      if (q isin $1) { mode $chan -q $2 }
      if (a isin $1) { mode $chan -a $2 }
      if (o isin $1) { mode $chan -o $2 }
      if (h isin $1) { mode $chan -h $2 }
      if (v isin $1) { mode $chan -v $2 }
    }
    if (- isin $1) {
      if (q isin $1) { mode $chan +q $2 }
      if (a isin $1) { mode $chan +a $2 }
      if (o isin $1) { mode $chan +o $2 }
      if (h isin $1) { mode $chan +h $2 }
      if (v isin $1) { mode $chan +v $2 }
    }
  }
}

Comments

Sign in to comment.
Zachery   -  Oct 25, 2006

lol sorry, for being so rude in my past >:) (also sorry for bumping(?) this one

 Respond  
Zachery   -  Oct 16, 2005

mabye this wad an unrealircd snippet :O

 Respond  
Zachery   -  Oct 14, 2005

heh cuz it don\'t work :O

 Respond  
anthalus   -  Oct 12, 2005

Why don\'t you just do the on Rawmode part the same as the on Mode part?

if ( !$istok($me ,$nick,32) ) {
mode $chan $replacex($1-,+,-,-,+)
}

 Respond  
Fossa   -  Oct 12, 2005

tested on IRCNET with ircd 2.11.x :)

 Respond  
StonedStoner   -  Oct 11, 2005

Well not on most IRCds but on ChatSpace servers you can ;/

 Respond  
Zachery   -  Oct 11, 2005

Qupte From Fossa: \"also when someone who is opped and types for example /mode #channel -o nick for a already NON opped nick the script will op him/her.\"
Nope, Some One Thzat Doesn\'t Have An Op Can\'t Be Deoped

 Respond  
Fossa   -  Oct 10, 2005

1 bracket to much in: if ( !$istok($me ,$nick,32) ) { {
,also when someone who is opped and types for example /mode #channel -o nick for a already NON opped nick the script will op him/her.

 Respond  
Zachery   -  Oct 09, 2005

Done And Doen xP

 Respond  
xDaeMoN   -  Oct 09, 2005

You can change this part

if ($nick != $me) && ($nick != ) && ($nick != ) {

to

if ( !$istok($me nick1 nick2,$nick,32) ) {

 Respond  
KuTsuM   -  Oct 09, 2005

Yer missing a closing bracket, other than that not bad

 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.