Esempio n. 1
0
 public static function reply($message)
 {
     self::$LAST_SERVER->reply($message);
 }
Esempio n. 2
0
 private function response(Dog_Server $server, $message)
 {
     if ($this->origin === $server->getBotsNickname()) {
         $server->reply($this->user->getVar('user_name'), $message);
         return;
     }
     switch (self::GLOBAL_BEHAVIOUR) {
         case 0:
             $server->reply($this->origin, $message);
             break;
         case 1:
             Lamb::instance()->globalMessage($message);
             break;
         case 2:
             Lamb::instance()->superGlobalMessage($message);
             break;
         default:
             break;
     }
 }