mIRC Home    About    Download    Register    News    Help

Print Thread
#162373 17/10/06 01:13 PM
Joined: Oct 2006
Posts: 11
W
Pikka bird
OP Offline
Pikka bird
W
Joined: Oct 2006
Posts: 11
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 ?

#162374 17/10/06 01:28 PM
Joined: Dec 2002
Posts: 2,031
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Dec 2002
Posts: 2,031
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 }
}

#162375 17/10/06 02:01 PM
Joined: Oct 2006
Posts: 11
W
Pikka bird
OP Offline
Pikka bird
W
Joined: Oct 2006
Posts: 11
Yeap cool that works thanks smile

#162376 17/10/06 02:03 PM
Joined: Dec 2002
Posts: 2,031
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Dec 2002
Posts: 2,031
You're most welcome smile

#162377 17/10/06 05:09 PM
Joined: Jun 2006
Posts: 508
D
Fjord artisan
Offline
Fjord artisan
D
Joined: Jun 2006
Posts: 508
Another way
Code:
on *:text:*:#: {
  if $nick(#,$nick,~&) { do stuff }
}


Link Copied to Clipboard