Local mIRC Bot timing out after some time?

Edit: Google tells me this indicates a syntax error, verify that you match all brackets or don’t end a statement too early.

Now I am not familiar with mIRC scripting, but if you post some of your code it would be easier for others to help you.