; Highlight Script ; By Joshua ; Collects highlights, and sends the text, person who spoke that text, timestamp, ; network, and channel to a dedicated @highlights window. alias hilight { highlight $1- } alias highlight { if ($1 == addnick) { $iif(!$ini(highlight.ini,$network,Nick),.writeini -n highlight.ini $network Nick $2,.writeini -n highlight.ini $network $addtok($readini(highlight.ini,n,$network,Nick),$2,44)) echo 14 -ga [HL] Added $2 to highlighted nicks. } elseif ($1 == delnick) { .writeini -n highlight.ini $network $remtok($readini(highlight.ini,n,$network,Nick),$2,44) echo 14 -ga [HL] Deleted $2 from highlighted nicks. } elseif ($1 == ignore) { .writeini -n highlight.ini $network Ignore $addtok($readini(highlight.ini,n,$network,Ignore),$2,44) echo 14 -ga [HL] Ignoring highlights from: $2 $+ . } elseif ($1 == unignore) { .writeini -n highlight.ini $network Ignore $remtok($readini(highlight.ini,n,$network,Ignore),$2,44) echo 14 -ga [HL] Unignoring highlights from: $2 $+ . } elseif (!$1) { echo 14 -ga /highlight addnick nick echo 14 -ga /highlight delnick nick echo 14 -ga /highlight ignore nick echo 14 -ga /highlight unignore nick } } ;on *:text:*:#: { ; if ($strip($me) isin $1-) && (!$istok($readini(connect.ini,n,$network,Ignore),$nick,44)) { ; if (!$window(@highlights)) { window -xnhze @highlights } ; aline -pa @highlights $adate $timestamp $+($chr(03),12,$chr(91),$chr(03),10,$network - $chan,$chr(03),12,$chr(93)) $+($chr(03),13,$nick,:) $+($chr(03),11,$1-) ; ; echo $chan $timestamp $+(<,$chr(03),$nick($chan,$nick).color,$nick($chan,$nick).pnick,$chr(03),>) $1- ; haltdef ; } ;} on *:text:*:#: { if (!$istok($readini(highlight.ini,n,$network,Ignore),$nick,44)) && ($strip($me) isin $1-) { if (!$window(@highlights)) { window -ntxze @highlights } aline -pa @highlights $timestamp $+($chr(03),12,$chr(91),$chr(03),10,$network,/,$chan,$chr(03),12,$chr(93)) $+($chr(03),13,$nick,:) $+($chr(03),11,$1-) } }