quote:
Originally posted by CookieRevised
EDIT: I see dead posted first.... anyhow, dead's code can be optimized too...
I never said it was perfect
However, even without optimization I'd consider it to be better than what markee posted. It doesn't rely on the registry, which could change in future SP3 versions (unlikely but possible!). It also doesn't read from the registry every time you receive a message
.. It's also shorter, less confusing, etc. But yes I agree it could be optimized at least a little.