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.
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
}
Might be an idea to check whether you're an op before sending the command.
-Andy
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.
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
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.
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