Jethro commented on a Page, Highlight Notifier  -  Jun 23, 2010

World DMT's method is the same as as if-then-else, except he uses the $iif(), which, in turn, saves the repetition of an echo.

GoldFish, why would you need another elseif? An else condition will suffice (unless, of course, you only need your name called in the active channel to trigger the script., and negate the rest of common messages):> on &^:text::#: {
if ($me isin $1- || $anick isin $1-) && (# != $active) {
echo -a 4You were highlighted in # $&
by $nick $+ . $nick said " $+ $1- $+ " $+ . $&
2To respond, type /msg # .
}
else {
echo -a 2< $+ $nick(#,$nick).pnick $+ > $1-
haltdef
}
}Again, since you use $me isin $1-, you're gonna expect "false positives." And your current code won't work across networks if you have two rooms with the same name on them and are active in the second, where someone calls you in the first your command won't execute. That is why $activecid comes in handy.

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.