Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function join($chan){
- $this->send('JOIN',$chan);
- $this->channels[] = new channel($chan);
- $data = fgets($this->socket, 128);
- if(trim($data)!=''){
- out(trim($data));
- $this->ex = explode(' ', $data);
- $data = preg_replace("\\x03(?:[0-9][0-9]|[0-9])","",$data);
- if(preg_match(":([\\S]+) (353) [\\S]+ (?:=|@) #([\\S]+) :(.+)",$data)!=0){
- for($i = 4;$i<count($this->ex);$i++){
- $this->channels[count($this->channels)-1]->addUser(trim($this->ex[$i]));
- }
- print_r($this->channels);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement