Jun

29

I added a Color utility class to botzilla’s cls/ dir on github just now, and updated the botzilla.class to include it. This means that any plugin can use it. It’s an overloaded php5 class, so you’d have to convert it yourself to work with anything under if you still are. But I’m on 5.2.4 , so I couldn’t use __callStatic like I really wanted to. If you have that, go ahead and use it, I say.

Methods are color names from it’s internal colors array. Arguments are the text you want to color, and a background color if you want one.

There’s no spec for colors on IRC, so implementations vary. I noticed that pidgin’s colors are different than mIRC’s (from docs), and that some colors didn’t work for foreground while others didn’t work for background.

Oh well, play with it and find what works for you.

Post a Comment