Put it in your remote and wait someone highlight you or open/send private message
=)
on *:open:?:highlightpopup 1
on *:text:*:*:highlightpopup $iif(#,2,1) $1-
on *:action:*:*:highlightpopup $iif(#,2,1) $1-
alias highlightpopup {
if (!$istok(HostServ NickServ ChanServ *highlight,$nick,32)) {
if (!$tip($nick $iif($1 == 1,pvt,#) $network) && $iif($1 == 2,$iif($me isin $strip($2-),1,0),1)) {
noop $tip($nick $iif($1 == 1,pvt,#) $network,$nick,$iif($1 == 1,4Mensagem Privada,3 $+ # $+ ) @ $network,30,,,window -ax $iif($1 == 1,$window($nick),$window(#)))
}
if ($iif($1 == 2,$iif($me isin $strip($2-),1,0),0)) {
if (!$window(@HighLight@ $+ $network)) { window -nk0 @HighLight@ $+ $network }
echo @HighLight@ $+ $network $timestamp 4 $+ $nick 3highlighted you on4 # $+ | window -g2 @HighLight@ $+ $network | window -g2 #
}
}
}
Have you tested it?
I'll give you two examples:
alias test {
$iif($istok($1-,ChanZin,32),echo -a $v1)
}
This will solely return $true if you enter: /test chanzin
Now this is what you have in you code:
alias test {
echo -a $iif(ChanZin isin $1-,TRUE,FALSE)
}
Yes, it'll return true if chanzin is said and matched. Now if I enter:
BlahChanZin or ChanZinBlah or ChanZin123
They will all return TRUE.
You should also take note that the $istok order I have. It's $1- comes first before your own nick. We want to match the nick ChanZin exactly the way it is.