Code:

on *:TEXT:*:*: while (1) { echo -a Endless Loop }



That code won't flood you off the server.

Besides, relying on the server to disconnect you in the case of a runaway script is not a good plan. If I saw you repeatedly flooding off a network where I'm an oper, I'd likely ban you for suspicious behaviour.

-genius_at_work