Its probably not the best idea to smack them. I cant remember where I read this, but it said in bird "psychology" they dont connect what they are doing with being hit.
I dont know how true that is though.
(I wouldnt want to do it anyway.) Though I remember growing up on the farm when feeding...