mIRC Home    About    Download    Register    News    Help

Print Thread
#128505 26/08/05 04:18 PM
Joined: Jul 2005
Posts: 19
E
encom Offline OP
Pikka bird
OP Offline
Pikka bird
E
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.

#128506 26/08/05 07:18 PM
Joined: Aug 2005
Posts: 128
S
Vogon poet
Offline
Vogon poet
S
Joined: Aug 2005
Posts: 128
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
}

#128507 26/08/05 07:21 PM
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
Might be an idea to check whether you're an op before sending the command.

-Andy

#128508 26/08/05 08:16 PM
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
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
#128509 27/08/05 12:11 AM
Joined: Aug 2005
Posts: 1,052
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Aug 2005
Posts: 1,052
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


Code:
if $reality > $fiction { set %sanity Sane }
Else { echo -a *voices* }
#128510 27/08/05 10:50 AM
Joined: Apr 2003
Posts: 701
K
Hoopy frood
Offline
Hoopy frood
K
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.

#128511 27/08/05 11:47 AM
Joined: Jul 2005
Posts: 19
E
encom Offline OP
Pikka bird
OP Offline
Pikka bird
E
Joined: Jul 2005
Posts: 19
thanks

#128512 27/08/05 01:16 PM
Joined: Aug 2005
Posts: 128
S
Vogon poet
Offline
Vogon poet
S
Joined: Aug 2005
Posts: 128
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


Link Copied to Clipboard