why not just remove the while loop, or fix the problem ?
Because that would be too intelligent. It would be too logical.
and it eventually shuts up after about 100000 messages
As far as I know - that never happens. For as long as electricity runs into your computer...
But since my status window goes up to 10,000 lines (and I have $line($active,0) lines in my titlebar), I possibly won't know that. But I know a bad accidental while loop after a night's sleep still continues the next morning.