[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Extra colour...
I've been wrestling with the problem of nick colouring recently. The problem
is that, with only 15 colours, the nick-hash often collides and assigns two
or three people in a channel the same colour.
My solution was to write a python script that implemented a
"least-recently-used" colour assigning algorithm, so that if a new person
who doesn't have a colour assigned starts talking, they get assigned a
colour that isn't in use by anybody (or hasn't been used in the longest
time).
Now, this works much better, but what would be best is MORE COLOURS! :)
Since the text-box supports 32-bit colour, why not have a new code that
allows RGB colours to be set? %Krrggbb, for example.
Does anybody see any problems with this idea? I'm not sure how the text-box
is currently implemented, so tell me if it would make things messy and/or
slow.
I'd also be willing to implement this feature, if someone who's familiar
with the code could give me an idea of a good way to do it, and where to
start.
= Chris Gahan =============
(chris@ill-logic.com)
--
XChat-discuss: mailing list for XChat users
Archive: http://mail.nl.linux.org/xchat-discuss/