That was in Atomic, but the same happens in KOTH when reaching the center and in Racing Kings when reaching the 8th rank.
Edit: Also in Horde when capturing the last pawn on the board, as well as Antichess when losing all your pieces or mating yourself.