oh, for some reason i failed to make that connection. you're absolutely right, general purpose and utility functions such as $htmlfree() should always operate in a way that impacts the scripting environment as minimally as possible. there was, up until fairly recently, a bug with nested unnamed $regsubex() calls; i can't remember the exact nature of the bug, but the modification you suggested may even have been necessary on an older mIRC version.