mIRC Homepage
Posted By: encom need team script - 26/08/05 04:18 PM
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.
Posted By: stefys99 Re: need team script - 26/08/05 07:18 PM
Quote:
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
}
Posted By: SladeKraven Re: need team script - 26/08/05 07:21 PM
Might be an idea to check whether you're an op before sending the command.

-Andy
Posted By: Riamus2 Re: need team script - 26/08/05 08:16 PM
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.
Posted By: Lpfix5 Re: need team script - 27/08/05 12:11 AM
Quote:
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
Posted By: Kelder Re: need team script - 27/08/05 10:50 AM
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.
Posted By: encom Re: need team script - 27/08/05 11:47 AM
thanks
Posted By: stefys99 Re: need team script - 27/08/05 01:16 PM
I didn't read what he was asking very good. That's why I used || instead smile. But, I can swear I put the @ on the event. smile Don't know what happened smile
© mIRC Discussion Forums