mIRC Home    About    Download    Register    News    Help

Topic Options
#137196 - 09/12/05 03:00 AM some mode things
raZOR Offline
Hoopy frood

Registered: 06/04/05
Posts: 1009
Loc: Green Hill Zone
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?


Edited by raZOR (09/12/05 03:01 AM)
_________________________
IceCapped

Top
#137197 - 09/12/05 03:40 AM Re: some mode things
schaefer31 Offline
Fjord artisan

Registered: 27/08/05
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
  }
}

Top
#137198 - 09/12/05 03:44 AM Re: some mode things
raZOR Offline
Hoopy frood

Registered: 06/04/05
Posts: 1009
Loc: Green Hill Zone
thanks, will try and see.
_________________________
IceCapped

Top
#137199 - 09/12/05 04:21 AM Re: some mode things
RusselB Offline
Planetary brain

Registered: 03/08/04
Posts: 7252
Loc: Ontario, Canada
Also don't forget about mIRC's /aop & /avoice commands

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

Top
#137200 - 09/12/05 04:26 AM Re: some mode things
schaefer31 Offline
Fjord artisan

Registered: 27/08/05
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.

Top
#137201 - 09/12/05 05:29 AM Re: some mode things
NeUtRoN_StaR Offline
Fjord artisan

Registered: 06/03/05
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

Top