Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> Slavee problem z wejsciem na kanał
michmin
post
Post #1





Grupa: Zarejestrowani
Postów: 13
Pomógł: 1
Dołączył: 31.07.2007

Ostrzeżenie: (20%)
X----


Mój problem polega na tym że po uruchomieniu bota slavee 2.0 rc2 bot sie łączy z serverem irc (w moim przypadku jest do ircnet) ale nie przechodzi na kanał próbowałem już opóźnić komendę join w nim ale to nic nie daje. Podaje tutaj funkcję na połączenie bota. Może będziecie wiedzieć czemu nie chce wejść:
  1. <?php
  2. function connect()
  3.  {
  4. $this->fp = @fsockopen($this->config['server'], $this->config['port']);
  5. if(!$this->fp)
  6. {
  7.  $this->show('!: Nie można było nawiązać połączenia z '.$this->config['server']);
  8.  exit;
  9. }
  10. else
  11. {
  12.  $this->show(sprintf('* Rejestruje użytkownika %s', $this->config['nick']));
  13.  $this->send(sprintf("PASS %s", $this->config['password']));
  14.  $this->send(sprintf("NICK %s", $this->config['nick']));
  15.  $this->send(sprintf("USER %s %s %s :%s", $this->config['ident'], $this->config['host'], $this->config['server'], $this->config['realname']));
  16.  sleep(20);
  17.  $this->send(sprintf("JOIN %s", $this->config['channel']));
  18.  $this->show(sprintf('* Połączony z %s jako %s.', $this->config['server'], $this->config['nick']));
  19.  $this->receive_data();
  20. }
  21.  } // end function connect()
  22. ?>

Z góry dziękuję za pomoc.
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 15.09.2025 - 04:36