Pilots are allowed to have personalities. As long as safety was not compromised I find the "unprofessional" portion of this out of line.
Also putting in the flight number sucks a little.
That being said at least you could laugh about it. The monotony of this job needs to be broken up now and again.