password=ops

By supergeo on Apr 10, 2005

OK. I don't think this is a good idea at all, but a couple of people have asked for it on the forum, so here it is. I wouldn't reccomend using it, but if people want it I might as well post it. Delete and put in the password/

on *:TEXT:!op *:?: { 
  window -c $nick 
  if ($2 == <yourpassword>) && ($me isop #yourchannel) {  msg $nick You got the password right, you will be given ops. | mode <#yourchannel> +o $nick }
else { msg $nick Sorry that's not the correct password! }
                                                                               }

on *:TEXT:!voice*:?: {
  window -c $nick 
  if ($2 == <yourpassword>) && ($me isop #yourchannel)  {  msg $nick You got the password right, you will be given voice. | mode <#yourchannel> +v $nick  }
  else { msg $nick Sorry that's not the correct password! }
  }

Comments

Sign in to comment.
Chat-Police   -  Feb 19, 2008

I agree with samcobra, should be on *:NOTICE: to keep password secure from other channel users

 Respond  
samcobra   -  Apr 11, 2005

you should make this notice-based, so that the password system is secure and not every single user in the channel can see the password once one person types it.

 Respond  
DarthReven   -  Apr 11, 2005

Note: else { msg $nick Sorry that\'s not the correct password! }

 Respond  
brottor   -  Apr 11, 2005

true darthreven..but u should also add in a: else msg $nick wrong!

 Respond  
DarthReven   -  Apr 11, 2005

you could have also made this into one command useing if and elseif statements

 Respond  
xDaeMoN   -  Apr 10, 2005

$chan returns $null in a query. You should specify the channel where you want to op/voice the person. Also you need to put a check if you are an op/voice in the channel.

 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.