', $rawcmd); $channel = $ex[2]; $nicka = explode('@', $ex[0]); $nickb = explode('!', $nicka[0]); $nickc = explode(':', $nickb[0]); $host = $nicka[1]; $nick = $nickc[1]; if($ex[0] == "PING"){ fputs($socket, "PONG ".$ex[1]."\n"); } $args = NULL; for ($i = 4; $i < count($ex); $i++) { $args .= $ex[$i] . ' '; } if ($rawcmd[1] == "!sayit") { fputs($socket, "PRIVMSG ".$channel." :".$args." \n"); } elseif ($rawcmd[1] == "!md5") { fputs($socket, "PRIVMSG ".$channel." :MD5 ".md5($args)."\n"); } } } ?>