Advertisement
Eeems

Untitled

May 15th, 2011
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.52 KB | None | 0 0
  1.     function join($chan){
  2.         $this->send('JOIN',$chan);
  3.         $this->channels[] =  new channel($chan);
  4.         $data = fgets($this->socket, 128);
  5.         if(trim($data)!=''){
  6.             out(trim($data));
  7.             $this->ex = explode(' ', $data);
  8.             $data = preg_replace("\\x03(?:[0-9][0-9]|[0-9])","",$data);
  9.             if(preg_match(":([\\S]+) (353) [\\S]+ (?:=|@) #([\\S]+) :(.+)",$data)!=0){
  10.                 for($i = 4;$i<count($this->ex);$i++){
  11.                     $this->channels[count($this->channels)-1]->addUser(trim($this->ex[$i]));
  12.                 }
  13.                 print_r($this->channels);
  14.             }
  15.         }
  16.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement