Esempio n. 1
0
 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'));
     }
 }
Esempio n. 2
0
 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))));
 }