I thought I had found a quick and easy way to save myself some time from parsing status to get player numbers by using qstat and going through a loop but this proved to be inaccurate at times and in retrospect an utterly stupid way to do this.
I should be parsing status for the most accurate information... the only problem I have now is qstat graciously converted the dp characters and colors to html for me.
I was wondering if anyone has a php function already written to do this conversion or is willing to write one to save me some time.
this thread gives a hint about what I need to do... but I'm not 100% clear on what needs to be done. A here is div's perl implementation for the IRC gateway
I need this:
[m[1;33mRanch[1;32mDressing[1;34m{[1;36mYMCA[1;34m}[1;33m|[mGGG[1;33m|[m[m
to look like this:
<font color="yellow">Ranch</font><font color="green">Dressing</font><font color="blue">{</font><font color="cyan">YMCA</font><font color="blue">}</font><font color="yellow">|</font><font color="white">GGG</font><font color="yellow">|</font><font color="white"></font>
Hex code is preferred over the color name references (i.e #00f to green, #f00 to red) and support for terencehill's new ^xrgb colors would be sweet.
These scripts will be released once I'm finished. There is a still a lot of work to be done (as this show stopping bug has made clear).