private function onAutoLogin(Dog_User $user) { if ($user->isRegistered() && !$user->isLoggedIn()) { unset($this->tried[array_search($user->getID(), $this->tried)]); $user->setLoggedIn(true); $user->sendNOTICE($this->lang('logged_in')); } }
private function scumCards(Dog_User $user) { if (false === ($game = $this->getGame())) { return $this->errorSlot(); } if (!$game->isRunning()) { return $this->errorNotRunning(); } $user->sendNOTICE($this->lang('your_cards', array($game->displayCards($user)))); }