Auto Op

By PureBlood on Mar 22, 2006

This script will auto op all users who join your channel.

WARNING: Giving the wrong person op's isn't a very good idea. I only made this script b/c users have been requesting it!

NOTE: IF you wish you can change
mode $chan +o $nick }
to +v and that will auto voice users!

Steps:
1.) Place this in your remote section of your IRC Script Editer
2.) Change
on *:JOIN:#yourchan:{
to your channel you want auto op
3.) The you are done!

######################
### This Script was made by Lucas (PureBlood) on irc.ewfs.net
### If you have any questions/complaint/suggestions please email
### at: rcb_flying_eagles_football05@hotmail.com
######################

on *:JOIN:#yourchan:{
 if ($nick == $me) { halt }
 if ($me isop $chan) {
 notice $nick 12Welcome to the $chan $nick $+ !
 mode $chan +o $nick }
 }

Comments

Sign in to comment.
MaDMAn01   -  May 19, 2011

do you need to fill in the users nick name after the $? or just nick
Our channel is secured with a key, where do i need ot insert the key or just like on the join in after the #channel?
Thnx for the script but its not working sofar.
Do i need to be OP to let it work?

 Respond  
Jethro   -  Apr 07, 2011

I see. Thanks for taking your time for the explanation.

 Respond  
Gummo   -  Apr 07, 2011

Sorry, Jethro_, the reason I said you might as well check $nick == NickHere is because the code you suggested was no more secure than that. If you are comparing the current address of the person triggering the event (nick!ident@host) against, for example, $address(NickHere,2), the script will be comparing the triggered address with the address of whoever is currently using NickHere.
With that being the case, anyone using NickHere would validate correctly as the desired person.

 Respond  
Jethro   -  Apr 07, 2011

Problem is, Android doesn't want the nick but the ident or host check. Nick is not as safe as the ident or host. Gummo, I know you meant well, but you sounded sort of harshly critical of a suggestion made by me who was trying to be helpful. (No pun intended)

 Respond  
Gummo   -  Apr 07, 2011

Jethro_, if you are going to use that first method you might as well check for $nick == NickHere.
The second method is the same deal but it looks at the current address of the nickname compared to the address of the person in the event.
Also, you don't need the iswm operator if you have no wildcard comparison, which is the case when you compare one full address to another full address.

AndroidKnight, use this.

if (*!camron@jackdaniels.aint.got.shoot.on.me iswm $fulladdress) {
 Respond  
AndroidKnight   -  Apr 07, 2011

can i do ?

if ($wildsite == *!camron@jackdaniels.aint.got.shit.on.me)

 Respond  
Jethro   -  Apr 07, 2011

Or:

if ($fulladdress iswm $address(NickHere,5)) {

Now only NickHere needs to be changed. I think we can even use:

if ($wildsite iswm $address(NickHere,5)) {
 Respond  
Gummo   -  Apr 07, 2011

Or you can use

if (Nick!*ident@host iswm $fulladdress) {

..Which is what they want.

 Respond  
Jethro   -  Apr 07, 2011

AndroidKnight, enter:

//echo -a $address(NickHere,2)

Replace NickHere with the user's channel nickname, and that's the one you should use.

Or you could make it like so:

if ($wildsite == $address(NickHere,2)) {
 Respond  
AndroidKnight   -  Apr 06, 2011

Jethro_ it doesn't seem to auto op the user if i do

Nick!*ident@host

 Respond  
AndroidKnight   -  Apr 06, 2011

thanks Jethro_ :)

 Respond  
Jethro   -  Apr 06, 2011

AndroidKnight:

on @*:join:#:{
  if ($wildsite == *!*@host) {
    notice $nick 12Welcome to the $chan $nick $+ !
    mode $chan +o $nick 
  }
}

Just replace !@host with the user's real host.

 Respond  
AndroidKnight   -  Apr 06, 2011

Anyway to modify this script to give autop to a user but that user needs to have a specific ident and ip ? Thanks a lot.

 Respond  
dave   -  Jun 03, 2006

This script doesn\'t work.

This:
on *:JOIN:#:{
if ($nick == $me) { halt }
if ($me isop $chan) {
notice $nick 12Welcome to the $chan $nick $o !
mode $chan +o $nick }
}

Does work,

not $+ but $o

 Respond  
Jake   -  May 28, 2006

This script would oper anyone who joins, no?

 Respond  
PureBlood   -  Mar 25, 2006

PureBlood

Comments: 6

Posted: Mar 22, 2006 4:19 pm


Please note that I made this script on request! So pelase don\'t complain about it being auto op!

 Respond  
xDaeMoN   -  Mar 22, 2006

I\'m aware, but some don\'t like Undernet. Especially if the channel is not registered. This is just FYI. =)

 Respond  
Earl   -  Mar 22, 2006

xDaeMoN, Most servers have channel services that can help prevent takeovers.

 Respond  
xDaeMoN   -  Mar 22, 2006

Though this type of code could lead to take overs if you auto-op a person with bad intention.

 Respond  
xDaeMoN   -  Mar 22, 2006

You can simplify the code to this:

On @!*:JOIN:#: {
.notice $nick 12Welcome to the $chan $nick $+ !
mode $chan +o $nick
}

 Respond  
PureBlood   -  Mar 22, 2006

Please note that I made this script on request! So pelase don\'t complain about it being auto op!

 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.