Ejemplo n.º 1
0
 function ProcessCMD($data)
 {
     $Bits = explode(" ", $data);
     echo ">> [IRC] Recieved: " . $data . "\n";
     // PRIVMSG Handler (Format: nick!user@host PRIVMSG reciever :message)
     if (isset($Bits[1])) {
         if ($Bits[1] == "PRIVMSG") {
             IRCHandle::OnPrivMsg($Bits[0], $Bits[2], implode(' ', array_slice($Bits, 3)));
         } elseif ($Bits[1] == "NOTICE") {
             //IRCHandle :: OnNotice($Bits[0],$Bits[2],str_replace(":","",implode( ' ' , array_slice( $Bits , 3 ) )));
         }
     } elseif ($Bits[0] == "PING") {
         IRCHandle::OnPing($Bits[1]);
     } else {
         // Unhandled Stuff!
     }
 }