mIRC Homepage
Posted By: UncleJemima Op Script - 21/04/05 02:27 AM
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?
Posted By: SladeKraven Re: Op Script - 21/04/05 03:14 AM
Code:
On @*:Join:#: {
  if ($nick == BrwnThndr || $nick == shin_k) { mode $chan +o $ifmatch }
}


Using 2 or more On Op events will lead into cancelations.
Posted By: RusselB Re: Op Script - 21/04/05 03:20 AM
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 }
}
 

Posted By: Riamus2 Re: Op Script - 21/04/05 12:55 PM
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
Posted By: DaveC Re: Op Script - 21/04/05 01:08 PM
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)
Posted By: Riamus2 Re: Op Script - 21/04/05 01:18 PM
Ok, ok. laugh

Yes, you are correct. Thank you for clarifying what I said. smile
Posted By: tidy_trax Re: Op Script - 21/04/05 01:26 PM
= works, it's not recommended though.
Posted By: SladeKraven Re: Op Script - 21/04/05 02:06 PM
Too late to edit my first reply.

I meant On Join not On Op. blush

I was so tired, forgive me!
Posted By: UncleJemima Re: Op Script - 21/04/05 06:55 PM
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?
Posted By: tidy_trax Re: Op Script - 21/04/05 06:58 PM
You can just add more.
Why not use the built-in aop and avoice lists though?
Posted By: Riamus2 Re: Op Script - 21/04/05 07:05 PM
His network may not have those services. If it does, then he should use them. smile
Posted By: tidy_trax Re: Op Script - 21/04/05 07:19 PM
What? I'm talking about mIRC's built-in a(op/voice) lists.

/help /aop
/help /avoice
Posted By: Riamus2 Re: Op Script - 21/04/05 07:27 PM
D'oh. Ok, I should just take the day off... I was thinking about chanserv's aop lists and such. /ignore Riamus. crazy
Posted By: UncleJemima Re: Op Script - 21/04/05 11:06 PM
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!
Posted By: UncleJemima Re: Op Script - 21/04/05 11:59 PM
Oh! One last thing! Is there anyway I can set this up by mask instead of nick?
Posted By: tidy_trax Re: Op Script - 22/04/05 08:51 AM
You can specify addresses in mIRC's built-in aop and avoice lists.

/help /aop
/help /avoice
© mIRC Discussion Forums