mIRC Homepage
Posted By: WarlockTheWeary if ( $nick isop $chan ) - 17/10/06 01:13 PM
Anyway to make this just & Or ~ ONLY ?

have a command that i want only people with & or ~
in the channel to beable to do ...

any suggestions ?
Posted By: RoCk Re: if ( $nick isop $chan ) - 17/10/06 01:28 PM
You could do...

Code:
on *:TEXT:*:#: {
  var %pnick = $remove($nick(#,$nick).pnick,$nick)
  if (~ isin %pnick) { do stuff }
  elseif (& isin %pnick) { do stuff }
}


or

Code:
on *:TEXT:*:#: {
  var %pnick = $remove($nick(#,$nick).pnick,$nick)
  if ((~ isin %pnick) || (& isin %pnick)) { do stuff }
}
Posted By: WarlockTheWeary Re: if ( $nick isop $chan ) - 17/10/06 02:01 PM
Yeap cool that works thanks smile
Posted By: RoCk Re: if ( $nick isop $chan ) - 17/10/06 02:03 PM
You're most welcome smile
Posted By: deegee Re: if ( $nick isop $chan ) - 17/10/06 05:09 PM
Another way
Code:
on *:text:*:#: {
  if $nick(#,$nick,~&) { do stuff }
}
© mIRC Discussion Forums