It follows the same rule. When you use 'Shut up everybody' (no comma), you are speaking to a third party (probably a burly brute of a fellow) and asking him to silence everyone.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.