mIRC Home    About    Download    Register    News    Help

Print Thread
Op Script #117922 21/04/05 02:27 AM
Joined: Apr 2005
Posts: 4
U
UncleJemima Offline OP
Self-satisified door
OP Offline
Self-satisified door
U
Joined: Apr 2005
Posts: 4
I've been struggling with making a script that only ops and voices people based on their nick. Basically I want it to op the people shin_k, fritopi, and BrwnThndr when they join the channel and to voice DMF, IWS, and Bioclown. I have tried and gotten the following to work.

on *:JOIN:#:if $nick = BrwnThndr /mode # +o $nick

That works just fine, but if I try to add this under it...

on *:JOIN:#:if $nick = shin_k /mode # +o $nick

it still only works when BrwnThndr joins the channel and not shin_k.

Does anyone know how I can get this working for multiple people?

Re: Op Script #117923 21/04/05 03:14 AM
Joined: Dec 2002
Posts: 3,547
S
SladeKraven Offline
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
Code:
On @*:Join:#: {
  if ($nick == BrwnThndr || $nick == shin_k) { mode $chan +o $ifmatch }
}


Using 2 or more On Op events will lead into cancelations.

Re: Op Script #117924 21/04/05 03:20 AM
Joined: Aug 2004
Posts: 7,252
R
RusselB Offline
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
Code:
on @*:join:#:{
if $istok(shin_k fritopi BrwnThndr,$nick,32) { .mode $chan +o $nick }
if $istok(DMF IWS Bioclown,$nick,32) { .mode $chan +v $nick }
}
 


Re: Op Script #117925 21/04/05 12:55 PM
Joined: Oct 2004
Posts: 8,330
Riamus2 Offline
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
And, so you know the problem in your original script... use == rather than = to compare and only use a single ON JOIN event in any one script file or the second one will not work. smile


Invision Support
#Invision on irc.irchighway.net
Re: Op Script #117926 21/04/05 01:08 PM
Joined: Sep 2003
Posts: 4,230
D
DaveC Offline
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
only use a single IDENTICAL On Join event in any one script file or the second one will not work. smile

Multiple ON JOIN events are allowed but the first to trigger (top down tested) well be the only one run. (for this I consider ^ events a seprate event)

Re: Op Script #117927 21/04/05 01:18 PM
Joined: Oct 2004
Posts: 8,330
Riamus2 Offline
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
Ok, ok. laugh

Yes, you are correct. Thank you for clarifying what I said. smile


Invision Support
#Invision on irc.irchighway.net
Re: Op Script #117928 21/04/05 01:26 PM
Joined: Nov 2003
Posts: 2,327
T
tidy_trax Offline
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
= works, it's not recommended though.


New username: hixxy
Re: Op Script #117929 21/04/05 02:06 PM
Joined: Dec 2002
Posts: 3,547
S
SladeKraven Offline
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
Too late to edit my first reply.

I meant On Join not On Op. blush

I was so tired, forgive me!

Re: Op Script #117930 21/04/05 06:55 PM
Joined: Apr 2005
Posts: 4
U
UncleJemima Offline OP
Self-satisified door
OP Offline
Self-satisified door
U
Joined: Apr 2005
Posts: 4
on @*:join:#:{
if $istok(shin_k fritopi BrwnThndr,$nick,32) { .mode $chan +o $nick }
if $istok(DMF IWS Bioclown,$nick,32) { .mode $chan +v $nick }
}

Can I just add more users to be oped or voiced to the area in parentheses or do I have to change something else?

Re: Op Script #117931 21/04/05 06:58 PM
Joined: Nov 2003
Posts: 2,327
T
tidy_trax Offline
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
You can just add more.
Why not use the built-in aop and avoice lists though?


New username: hixxy
Re: Op Script #117932 21/04/05 07:05 PM
Joined: Oct 2004
Posts: 8,330
Riamus2 Offline
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
His network may not have those services. If it does, then he should use them. smile


Invision Support
#Invision on irc.irchighway.net
Re: Op Script #117933 21/04/05 07:19 PM
Joined: Nov 2003
Posts: 2,327
T
tidy_trax Offline
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
What? I'm talking about mIRC's built-in a(op/voice) lists.

/help /aop
/help /avoice


New username: hixxy
Re: Op Script #117934 21/04/05 07:27 PM
Joined: Oct 2004
Posts: 8,330
Riamus2 Offline
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
D'oh. Ok, I should just take the day off... I was thinking about chanserv's aop lists and such. /ignore Riamus. crazy


Invision Support
#Invision on irc.irchighway.net
Re: Op Script #117935 21/04/05 11:06 PM
Joined: Apr 2005
Posts: 4
U
UncleJemima Offline OP
Self-satisified door
OP Offline
Self-satisified door
U
Joined: Apr 2005
Posts: 4
Yea, I am an IRC op on ShadowFire and I am really used to having Chan and Nickserv around to asist with this matter. Unfortunately EFnet doesn't use chan or nickserv. Thanks for all the help though!

Re: Op Script #117936 21/04/05 11:59 PM
Joined: Apr 2005
Posts: 4
U
UncleJemima Offline OP
Self-satisified door
OP Offline
Self-satisified door
U
Joined: Apr 2005
Posts: 4
Oh! One last thing! Is there anyway I can set this up by mask instead of nick?

Re: Op Script #117937 22/04/05 08:51 AM
Joined: Nov 2003
Posts: 2,327
T
tidy_trax Offline
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
You can specify addresses in mIRC's built-in aop and avoice lists.

/help /aop
/help /avoice


New username: hixxy