on *:TEXT:*:#test:{
if ($network == EpicNet.Ru) {
%triggers = saner,Hello,How are you,Bye,some words
if ($wfind($strip($1-))) { .scid -at1 copymsg $unsafe($rtrig($strip($1-))) }
}
}
alias -l wfind { var %i 1 | while (%i <= $numtok(%triggers,44)) { if ($gettok(%triggers,%i,44) isin $1-) return 1 | inc %i } }
alias -l rtrig { var %i 1, %str $1- | while (%i <= $numtok(%triggers,44)) { var %str $remove(%str,$gettok(%triggers,%i,44)) | inc %i } | if ($len(%str)) return %str | else return $1- }
alias -l copymsg { msg #test2 $1- }