Fixed a bug where user.online was getting set after the hook (it should be before).