mIRC Home    About    Download    Register    News    Help

Print Thread
on text multiple words #262562 21/02/18 02:43 PM
Joined: Feb 2017
Posts: 19
D
Doctor_Souza Offline OP
Pikka bird
OP Offline
Pikka bird
D
Joined: Feb 2017
Posts: 19
in code "on $*:text:/(hi|hello|sup|yo)$/i:#: {" i can raplace "hi|hello|sup|yo" for variable?
this varriable content is hi|hello|sup|yo

Re: on text multiple words [Re: Doctor_Souza] #262569 23/02/18 12:33 AM
Joined: Apr 2004
Posts: 73
Z
Zelda4ever32 Offline
Babel fish
Offline
Babel fish
Z
Joined: Apr 2004
Posts: 73
Hi, I think this is what you're asking for?

Code:
/set %hireg hi|hello|sup|yo

Code:
on $*:text:$(/( $+ %hireg $+ )$/i):#: {
  msg # whats up, $nick $+ ?
}


/tokenize 32 $gettok($1-,1-,32)