That would be the start of Function Connect()
Does it look like this??: function connect($server = "chat2.d1.funcom.com", $port = 7012)
{
if($this->state !== "connect")
die("AOChat: not expecting connect.\n");
$s = socket_create(AF_INET, SOCK_STREAM, SOL_TCP);
if(!is_resource($s)) /* this is fatal */
die("Could not create socket.\n");
$this->socket = $s;
$this->state = "auth";
if(@socket_connect($s, $server, $port) === false)
{
trigger_error("Could not connect to the AO Chat server ($server:$port): ".
socket_strerror(socket_last_error($s)), E_USER_WARNING);
$this->disconnect();
return false;
}
$packet = $this->get_packet();
if(!is_object($packet) || $packet->type != AOCP_LOGIN_SEED)
{
trigger_error("Received invalid greeting packet from AO Chat server.", E_USER_WARNING);
$this->disconnect();
return false;
}
$this->tellqueue = new AOChatQueue(&$this, 'dispatch_tell', AOC_FLOOD_LIMIT, AOC_FLOOD_INC);
return $s;
}
Compare that to what you have. That should work unless you have bad login info in the .conf file. Check user name and password, they are case sensitive.