Esempio n. 1
0
 public function onEvent(Lamb $bot, Dog_Server $server, $event, $from, $args)
 {
     if ($event === 'JOIN') {
         if (false !== ($user = $server->getUserFromOrigin($from, $args[0]))) {
             if (false !== ($ip = $this->getIPfromOrigin($from))) {
                 if ($this->auto_probe) {
                     $this->addIP($server, $ip);
                 } else {
                     $this->output(sprintf('User %s has IP %s.', $user->getName(), $ip));
                 }
             }
         }
     }
 }