mIRC Home    About    Download    Register    News    Help

Print Thread
Multiple On Text Triggers #257474 14/04/16 12:48 PM
Joined: Dec 2013
Posts: 14
J
James Offline OP
Pikka bird
OP Offline
Pikka bird
J
Joined: Dec 2013
Posts: 14
Can someone tell me how to add multiple triggers to one event like this
on @*:TEXT:@find*,@search*,!*.zip*,!*.mp3*:#: {
if ($left($nick(#, $nick).pnick, 1) !isin ~&@!+) {

Re: Multiple On Text Triggers [Re: James] #257484 14/04/16 03:40 PM
Joined: Apr 2010
Posts: 943
F
FroggieDaFrog Offline
Hoopy frood
Offline
Hoopy frood
F
Joined: Apr 2010
Posts: 943
There's a few different ways to do it. the simpliest is probably just to use an if statement:
Code:
on @*:TEXT:*:#:{
  if ($left($nick(#, $nick).pnick, 1) !isin ~&@!+) && (@find* iswm $1- || @search* iswm $1- || !*.zip* iswm $1 || !*.mp3* iswm $1-) {
    ;; stuff
  }
}


I am SReject
My Stuff
Re: Multiple On Text Triggers [Re: FroggieDaFrog] #257488 14/04/16 05:50 PM
Joined: Dec 2013
Posts: 14
J
James Offline OP
Pikka bird
OP Offline
Pikka bird
J
Joined: Dec 2013
Posts: 14
Thank You Very Much