mIRC Home    About    Download    Register    News    Help

Print Thread
#137196 09/12/05 03:00 AM
Joined: Apr 2005
Posts: 1,009
raZOR Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Apr 2005
Posts: 1,009
i have like this:
Code:
  

ON *:JOIN:#channel: {
if ($me isop #channel) && ((nick1 isin $nick) || nick2 isin $nick) || (nick3 isin $nick)) { .op #channel $nick }
}
[/code]

but what if i want to voice certan nicknames, and do another than voice mode on nicknames

how to make it into this?

i cant do

if ($me isop #channel) do op
elseif ($me isop #channel) do voices
elseif ($me isop #channel) do another modes..

it will confuse mirc... or wont?

Last edited by raZOR; 09/12/05 03:01 AM.

IceCapped
#137197 09/12/05 03:40 AM
Joined: Aug 2005
Posts: 525
S
Fjord artisan
Offline
Fjord artisan
S
Joined: Aug 2005
Posts: 525
You can do something like this. I replaced the $me isop check with the @ prefix, which does the same thing.

Code:
on @*:JOIN:#Channel:{
  if (nick1 isin $nick || nick2 isin $nick) {
    mode # +o $nick
  }
  else if (nick3 isin $nick || nick4 isin $nick) {
    mode # +v $nick
  }
  else if (nick5 isin $nick || nick6 isin $nick) {
    mode # +h $nick
  }
}

#137198 09/12/05 03:44 AM
Joined: Apr 2005
Posts: 1,009
raZOR Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Apr 2005
Posts: 1,009
thanks, will try and see.


IceCapped
#137199 09/12/05 04:21 AM
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
Also don't forget about mIRC's /aop & /avoice commands

Not sure how much help they'll be, if any, but .....

#137200 09/12/05 04:26 AM
Joined: Aug 2005
Posts: 525
S
Fjord artisan
Offline
Fjord artisan
S
Joined: Aug 2005
Posts: 525
I know about those, but I just prefer to use simple scripts like above to keep things together. Then I don't have to deal with another list.

#137201 09/12/05 05:29 AM
Joined: Mar 2005
Posts: 212
N
Fjord artisan
Offline
Fjord artisan
N
Joined: Mar 2005
Posts: 212
you might consider your userlist
if you would like an event to handle more than one incidence you can use $ulevel in comparisons


Link Copied to Clipboard