scored (joining his celebration) the ref put up his hand to stop him.
I've also see refs more willing to signal to a player to keep things under control rather than just throwing a flag.
But actions that look like brandishing a weapon will get you an immediate flag.