That would be great. There's a video on youtube with someone doing that on mIRC but it doesn't say how.
Using scripts slows things down and I don't know of any way to do inline spell checking like that.
Why not just have support for aspell (
http://aspell.net/) which has support for many languages and can be installed only if the users want it?