|
Joined: Apr 2005
Posts: 4
Self-satisified door
|
OP
Self-satisified door
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?
|
|
|
|
Joined: Dec 2002
Posts: 3,547
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 3,547 |
On @*:Join:#: {
if ($nick == BrwnThndr || $nick == shin_k) { mode $chan +o $ifmatch }
}
Using 2 or more On Op events will lead into cancelations.
|
|
|
|
Joined: Aug 2004
Posts: 7,252
Hoopy frood
|
Hoopy frood
Joined: Aug 2004
Posts: 7,252 |
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 }
}
|
|
|
|
Joined: Oct 2004
Posts: 8,330
Hoopy frood
|
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.
Invision Support #Invision on irc.irchighway.net
|
|
|
|
Joined: Sep 2003
Posts: 4,230
Hoopy frood
|
Hoopy frood
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. 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)
|
|
|
|
Joined: Oct 2004
Posts: 8,330
Hoopy frood
|
Hoopy frood
Joined: Oct 2004
Posts: 8,330 |
Ok, ok. Yes, you are correct. Thank you for clarifying what I said.
Invision Support #Invision on irc.irchighway.net
|
|
|
|
Joined: Nov 2003
Posts: 2,327
Hoopy frood
|
Hoopy frood
Joined: Nov 2003
Posts: 2,327 |
= works, it's not recommended though.
New username: hixxy
|
|
|
|
Joined: Dec 2002
Posts: 3,547
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 3,547 |
Too late to edit my first reply. I meant On Join not On Op. I was so tired, forgive me!
|
|
|
|
Joined: Apr 2005
Posts: 4
Self-satisified door
|
OP
Self-satisified door
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?
|
|
|
|
Joined: Nov 2003
Posts: 2,327
Hoopy frood
|
Hoopy frood
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
|
|
|
|
Joined: Oct 2004
Posts: 8,330
Hoopy frood
|
Hoopy frood
Joined: Oct 2004
Posts: 8,330 |
His network may not have those services. If it does, then he should use them.
Invision Support #Invision on irc.irchighway.net
|
|
|
|
Joined: Nov 2003
Posts: 2,327
Hoopy frood
|
Hoopy frood
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
|
|
|
|
Joined: Oct 2004
Posts: 8,330
Hoopy frood
|
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.
Invision Support #Invision on irc.irchighway.net
|
|
|
|
Joined: Apr 2005
Posts: 4
Self-satisified door
|
OP
Self-satisified door
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!
|
|
|
|
Joined: Apr 2005
Posts: 4
Self-satisified door
|
OP
Self-satisified door
Joined: Apr 2005
Posts: 4 |
Oh! One last thing! Is there anyway I can set this up by mask instead of nick?
|
|
|
|
Joined: Nov 2003
Posts: 2,327
Hoopy frood
|
Hoopy frood
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
|
|
|
|
|