Categories

Archives

Effectively getting rid of nick colours

Nothing to see here: this is a post for my own reference.

I’ve been trying to rid my irssi of the script nickcolor.pl for literally years now. It’s a handy script in theory, but very often it’ll display nicks with equal length in the same colour, or it’ll display a lot of (non-bold) yellow nicks, thus making it difficult for me to read hilights (this is particularly irritating when scrolling back in a days worth of conversations).

Unloading the script would end up with me seeing all the nicks in the colour of the last person who said something. If red, all nicks turn red, if pink, all of them turn pink, etc.

My friend BenV handed me a simple solution for this. In irssi, type:

/format -reset pubmsg

This will reset the colour and make everything white again (exluding hilights of course). It has one side-effect which won’t go for most users but does happen for me. I have right-aligned nicks (all in 9 spaces), but the reset messes this up for anyone who talks except for higlights and stuff I say myself. This line fixes that:

/format pubmsg {pubmsgnick $2 {pubnick $[-9]0}}$1

So if I ever get it into my head to use this script again, because you know, I’m an idiot, this is how I fix it :)

Leave a Reply

 

 

 

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>