mIRC Homepage

some mode things

Posted By: raZOR

some mode things - 09/12/05 03:00 AM

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?
Posted By: schaefer31

Re: some mode things - 09/12/05 03:40 AM

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
  }
}
Posted By: raZOR

Re: some mode things - 09/12/05 03:44 AM

thanks, will try and see.
Posted By: RusselB

Re: some mode things - 09/12/05 04:21 AM

Also don't forget about mIRC's /aop & /avoice commands

Not sure how much help they'll be, if any, but .....
Posted By: schaefer31

Re: some mode things - 09/12/05 04:26 AM

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.
Posted By: NeUtRoN_StaR

Re: some mode things - 09/12/05 05:29 AM

you might consider your userlist
if you would like an event to handle more than one incidence you can use $ulevel in comparisons
© 2019 mIRC Discussion Forums