rendered paste bodyalias -l pad2 return $right(0 $+ $$1, 2)
;text highlights
on *:Text:$(* $+ $me $+ *):*: {
;set the highlight as a variable
set %thgilhgih $chr(3) $+ 7 $+ < $+ $iif($chan,$chan $chr(3) $+ $pad2($nick($chan, $nick).color) $+ $chr(31) $+ $nick $+ $chr(3),query $nick) $+ $chr(31) $+ $chr(3) $+ 7 $+ > $1- $+ $chr(3)
;if #scripts is not the active window, echo in #scripts and go on.
if ($active != #scripts) {
echo 4 -t #scripts %thgilhgih
}
;if the highlight occurs on the active window, echo in the status window and halt
if ($active == $chan) {
echo 4 -ts %thgilhgih
halt
}
;otherwise, echo in the active window, and in the status window
else {
echo 4 -tsa %thgilhgih
}
}
;act highlights
on *:Action:$(* $+ $me $+ *):*: {
set %thgilhgih $chr(3) $+ 7 $+ * $iif($chan,$chan $chr(3) $+ $chr(31) $+ $pad2($nick($chan, $nick).color) $+ $nick $+ $chr(3),query $nick) $+ $chr(31) $+ $chr(3) $+ 7 $+ $1- $+ $chr(3)
if ($active != #scripts) {
echo 4 -t #scripts %thgilhgih
}
if ($active == $chan) {
echo 4 -ts %thgilhgih
halt
}
else {
echo 4 -tsa %thgilhgih
}
}