The replace thing wasnt in any seriousness, I know the design problems (especially considering it wouldnt get to Lua until after it matched, which means after it was displayed, which well, yeah, weve been over this).
As for color, I'd just as soon have it be ANSI sequences. And MXP, and everything.
If someone is going to be screwing around with low level stuff, they should be able to take care of colors/MXP/whatever.
Just like in assembly, or C, or whatever, as opposed to something higher (VBscript), yes, you MIGHT have overflows, or whatever, but since youre coding at a lower level, thats to be expected, and youre expected to be able to take care of that.
As for the line triggering problem, its the same thing if youre omitting. Yes, you might be inserting something, or changing something, but we do the same thing with things being omitted.
And make it a plugin callback, I think that would be the most useful. Because you'd shield 'normal' users from it, and wouldnt have to rewrite anything that already exists. Just give the plugin the line, and have it return the new line (both including color/mxp/etc, just an assembly of packets, let the plugin writer deal with everything, to give him the most flexibility). |