I honestly have no clue who wrote it, but judging by the codestyle, I'd have to say that it was written by two or more people, one of which uses proper indentation and spacing, and one who does no such thing.