Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Activate highlighting through a script?

47 views
Skip to first unread message

David

unread,
Oct 7, 2007, 7:43:27 PM10/7/07
to
I'd like to be able to activate highlighting through a script, is this
possible?

I'd like to use the nick list popup so that while I'm in a channel I can
right click on a nick and have that person's text highlighted. I'd prefer
to have it highlighted in a color different from other highlights, so I can
easily distinguish between different nicks that are highlighted. This would
be for use in a channel with a lot of communication so I can keep track of
who I'm talking to since not everyone is in the habit of typing your nick
when they're talking to you.

David

unread,
Oct 8, 2007, 1:16:34 AM10/8/07
to

"David" <david...@yoowhoo.com> wrote in message
news:6OKdnS9pxtDr75Ta...@comcast.com...


In case anyone is looking for something that has this functionality, this
works great:

on ^*:text:*:#:{
if ($hget(hlnick,$nick)) { echo $v1 -i3tlbfmr $chan $+(<,$nick,>) $1- |
haltdef }
}
on *:nick:{
if ($hget(hlnick,$nick)) {
hdel hlnick $nick
hadd hlnick $newnick $v1
}
}

alias hlnick {
if (!$0) { echo -a *** hlnick: /hlnick [-r] <nick> <color> | return }
if (-r == $1) { hdel hlnick $$2 | echo -a *** Removed highlight for: $2 }
elseif ($0 == 2) { hadd -m hlnick $$1 $$2 | echo $2 -a *** Added highlight
for: $1 }
}
alias hlview {
var %i = 1 , %e = echo -ag *** Highlight nicks:
while ($hget(hlnick,%i).item) {
var %nicks = %nicks $v1
if ($numtok(%nicks,32) > 10) { %e %nicks | var %nicks }
inc %i
}
if (%nicks) { %e %nicks }
}


0 new messages