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?
On @*:Join:#: {
if ($nick == BrwnThndr || $nick == shin_k) { mode $chan +o $ifmatch }
}
Using 2 or more On Op events will lead into cancelations.
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.
only use a single
IDENTICAL On Join event in any one script file or the second one will not work.
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)
Ok, ok.
Yes, you are correct. Thank you for clarifying what I said.
= works, it's not recommended though.
Too late to edit my first reply.
I meant On Join not On Op.
I was so tired, forgive me!
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?
You can just add more.
Why not use the built-in aop and avoice lists though?
His network may not have those services. If it does, then he should use them.
What? I'm talking about mIRC's built-in a(op/voice) lists.
/help /aop
/help /avoice
D'oh. Ok, I should just take the day off... I was thinking about chanserv's aop lists and such. /ignore Riamus.
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!
Oh! One last thing! Is there anyway I can set this up by mask instead of nick?
You can specify addresses in mIRC's built-in aop and avoice lists.
/help /aop
/help /avoice