Actually it's not - it still won't actually protect you from the flood. You just keep on closing windows until the server disconnects you for being flooded. You cannot script this right without at some point flipping an ignore.