The man had hiccups. The barman recognised this from his speech and drew the gun in order to give him a shock. It worked and cured the hiccups – so the man no longer needed the water. This one was dicey