Anonymous
public text v1 · immutable function create() {
$this->address='irc.devcollective.com';
$this->port=6667;
$this->nickname='darkHub'.rand(1,100);
$this->channel='#devcol';
$this->link=socket_create(AF_INET, SOCK_STREAM, SOL_TCP);
$this->connect = socket_connect($this->link, $this->address, $this->port);
if (!$this->connect) {
die("Failed to connect\n");
}
socket_write($this->link,"USER dark D A R K :dark\r\n");
socket_write($this->link,"NICK $this->nickname\r\n");
}