Bukkit/CraftBukkit — comment on commit e688f0d4763e0ae929a85a05c63ee49927d4bbf7
File:  line 0
By snowleo:

If a player with fauxSleeping enabled uses a bed, he is stuck after the night.