|
|
Joined: Jul 2005
Posts: 19
Pikka bird
|
OP
Pikka bird
Joined: Jul 2005
Posts: 19 |
I need 2 scripts, please help me:
1. if someone joins my channel with a tag like: [b]pro|nickname he have to get auto opped.
2. if some joins my channel with tag /guser 100, he have to get opped.
Thanks a lot.
|
|
|
|
Joined: Aug 2005
Posts: 128
Vogon poet
|
Vogon poet
Joined: Aug 2005
Posts: 128 |
I need 2 scripts, please help me:
1. if someone joins my channel with a tag like: [b]pro|nickname he have to get auto opped.
2. if some joins my channel with tag /guser 100, he have to get opped.
Thanks a lot. on 1:join:#:{ if (pro|* iswm $nick) || ($level($address($nick,2)) >= 100) mode $chan +o $nick }
|
|
|
|
Joined: Dec 2002
Posts: 3,547
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 3,547 |
Might be an idea to check whether you're an op before sending the command.
-Andy
|
|
|
|
Joined: Oct 2004
Posts: 8,330
Hoopy frood
|
Hoopy frood
Joined: Oct 2004
Posts: 8,330 |
Just a thought... people can change nicks easily enough. If someone realizes you are auto-opping anyone with pro| in front of their nick, then they can leave the channel, change their nick, rejoin and get ops, deop and ban everyone else and change back to their own nick.
Granted, if you have chanserv/nickserv, or similar services, you can manage to recover from such an attack. But, it's a waste of time when you can avoid it.
Invision Support #Invision on irc.irchighway.net
|
|
|
|
Joined: Aug 2005
Posts: 1,052
Hoopy frood
|
Hoopy frood
Joined: Aug 2005
Posts: 1,052 |
Just a thought... people can change nicks easily enough. If someone realizes you are auto-opping anyone with pro| in front of their nick, then they can leave the channel, change their nick, rejoin and get ops, deop and ban everyone else and change back to their own nick.
Granted, if you have chanserv/nickserv, or similar services, you can manage to recover from such an attack. But, it's a waste of time when you can avoid it. riamus but in his script aint the point of $level command being 100 on a nick if true then its op'd the point behind someone doing that? I really love how steffy scripted it though however andy is right about the checking if your op first
if $reality > $fiction { set %sanity Sane }
Else { echo -a *voices* }
|
|
|
|
Joined: Apr 2003
Posts: 701
Hoopy frood
|
Hoopy frood
Joined: Apr 2003
Posts: 701 |
It says ||, not &&, just like encom asked. So, yes, it still has the same problem, and encom should think about this, some people don't need a reason to takeover a channel.
on @100:join:#channel:mode $chan +o $nick on @1:join:#channel:if (pro|* iswm $nick) mode $chan +o $nick
Change #channel to the name of your own channel, or channels separated by commas.
|
|
|
|
Joined: Jul 2005
Posts: 19
Pikka bird
|
OP
Pikka bird
Joined: Jul 2005
Posts: 19 |
|
|
|
|
Joined: Aug 2005
Posts: 128
Vogon poet
|
Vogon poet
Joined: Aug 2005
Posts: 128 |
I didn't read what he was asking very good. That's why I used || instead . But, I can swear I put the @ on the event. Don't know what happened
|
|
|
|
|
|