All pastes #632800 Raw Edit

Anonymous

public text v1 · immutable
#632800 ·published 2007-07-25 05:15 UTC
rendered paste body
	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");
	}